[ Index ] |
PHP Cross Reference of vtigercrm-6.1.0 |
[Summary view] [Print] [Text view]
1 {*<!-- 2 /********************************************************************************* 3 ** The contents of this file are subject to the vtiger CRM Public License Version 1.0 4 * ("License"); You may not use this file except in compliance with the License 5 * The Original Code is: vtiger CRM Open Source 6 * The Initial Developer of the Original Code is vtiger. 7 * Portions created by vtiger are Copyright (C) vtiger. 8 * All Rights Reserved. 9 * 10 ********************************************************************************/ 11 -->*} 12 {strip} 13 {foreach key=index item=jsModel from=$SCRIPTS} 14 <script type="{$jsModel->getType()}" src="{$jsModel->getSrc()}"></script> 15 {/foreach} 16 <div id="massEditContainer" class='modelContainer'> 17 <div class="modal-header contentsBackground"> 18 <button type="button" class="close " data-dismiss="modal" aria-hidden="true">×</button> 19 <h3 id="massEditHeader">{vtranslate('LBL_MASS_EDITING', $MODULE)} {vtranslate($MODULE, $MODULE)}</h3> 20 </div> 21 <form class="form-horizontal" id="massEdit" name="MassEdit" method="post" action="index.php"> 22 {if !empty($PICKIST_DEPENDENCY_DATASOURCE)} 23 <input type="hidden" name="picklistDependency" value='{Vtiger_Util_Helper::toSafeHTML($PICKIST_DEPENDENCY_DATASOURCE)}' /> 24 {/if} 25 <input type="hidden" name="module" value="{$MODULE}" /> 26 <input type="hidden" name="action" value="MassSave" /> 27 <input type="hidden" name="viewname" value="{$CVID}" /> 28 <input type="hidden" name="selected_ids" value={ZEND_JSON::encode($SELECTED_IDS)}> 29 <input type="hidden" name="excluded_ids" value={ZEND_JSON::encode($EXCLUDED_IDS)}> 30 <input type="hidden" name="search_key" value= "{$SEARCH_KEY}" /> 31 <input type="hidden" name="operator" value="{$OPERATOR}" /> 32 <input type="hidden" name="search_value" value="{$ALPHABET_VALUE}" /> 33 <input type="hidden" name="search_params" value='{ZEND_JSON::encode($SEARCH_PARAMS)}' /> 34 35 <input type="hidden" id="massEditFieldsNameList" data-value='{Vtiger_Util_Helper::toSafeHTML(ZEND_JSON::encode($MASS_EDIT_FIELD_DETAILS))}' /> 36 <div name='massEditContent'> 37 <div class="modal-body tabbable"> 38 <ul class="nav nav-tabs massEditTabs"> 39 {foreach key=BLOCK_LABEL item=BLOCK_FIELDS from=$RECORD_STRUCTURE name=blockIterator} 40 {if $BLOCK_FIELDS|@count gt 0} 41 <li {if $smarty.foreach.blockIterator.iteration eq 1}class="active"{/if}><a href="#block_{$smarty.foreach.blockIterator.iteration}" data-toggle="tab"><strong>{vtranslate($BLOCK_LABEL, $MODULE)}</strong></a></li> 42 {/if} 43 {/foreach} 44 </ul> 45 <div class="tab-content massEditContent"> 46 {foreach key=BLOCK_LABEL item=BLOCK_FIELDS from=$RECORD_STRUCTURE name=blockIterator} 47 {if $BLOCK_FIELDS|@count gt 0} 48 <div class="tab-pane {if $smarty.foreach.blockIterator.iteration eq 1}active{/if}" id="block_{$smarty.foreach.blockIterator.iteration}"> 49 <table class="massEditTable table table-bordered"> 50 <tr> 51 {assign var=COUNTER value=0} 52 {foreach key=FIELD_NAME item=FIELD_MODEL from=$BLOCK_FIELDS name=blockfields} 53 {assign var="isReferenceField" value=$FIELD_MODEL->getFieldDataType()} 54 {assign var="refrenceList" value=$FIELD_MODEL->getReferenceList()} 55 {assign var="refrenceListCount" value=count($refrenceList)} 56 {if $FIELD_MODEL->isEditable() eq true} 57 {if $FIELD_MODEL->get('uitype') eq "19"} 58 {if $COUNTER eq '1'} 59 <td></td><td></td></tr><tr> 60 {assign var=COUNTER value=0} 61 {/if} 62 {/if} 63 {if $COUNTER eq 2} 64 </tr><tr> 65 {assign var=COUNTER value=1} 66 {else} 67 {assign var=COUNTER value=$COUNTER+1} 68 {/if} 69 <td class="fieldLabel alignMiddle"> 70 {if $FIELD_MODEL->isMandatory() eq true} <span class="redColor">*</span> {/if} 71 {if {$isReferenceField} eq "reference"} 72 {if $refrenceListCount > 1} 73 <select style="width: 150px;" class="chzn-select referenceModulesList" id="referenceModulesList"> 74 <optgroup> 75 {foreach key=index item=value from=$refrenceList} 76 <option value="{$value}">{vtranslate($value, $value)}</option> 77 {/foreach} 78 </optgroup> 79 </select> 80 {else} 81 {vtranslate($FIELD_MODEL->get('label'), $MODULE)} 82 {/if} 83 {else} 84 {vtranslate($FIELD_MODEL->get('label'), $MODULE)} 85 {/if} 86 87 </td> 88 <td class="fieldValue" {if $FIELD_MODEL->getFieldDataType() eq 'boolean'} style="width:25%" {/if} {if $FIELD_MODEL->get('uitype') eq '19'} colspan="3" {assign var=COUNTER value=$COUNTER+1} {/if}> 89 {include file=vtemplate_path($FIELD_MODEL->getUITypeModel()->getTemplateName(),$MODULE)} 90 </td> 91 {/if} 92 {/foreach} 93 {*If their are odd number of fields in MassEdit then border top is missing so adding the check*} 94 {if $COUNTER is odd} 95 <td></td> 96 <td></td> 97 {/if} 98 </tr> 99 </table> 100 </div> 101 {/if} 102 {/foreach} 103 </div> 104 </div> 105 </div> 106 {include file='ModalFooter.tpl'|@vtemplate_path:$MODULE} 107 </form> 108 </div> 109 {/strip}
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:08:37 2014 | Cross-referenced by PHPXref 0.7.1 |