[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
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 <body class=small> 13 {include file='QuickCreateHidden.tpl'} 14 <table border=0 align="center" cellspacing=0 cellpadding=0 width="90%" class="mailClient mailClientBg"> 15 <tr> 16 <td> 17 <table border=0 cellspacing=0 cellpadding=0 width="100%" class=small> 18 <tr> 19 <td width-90% class="mailSubHeader" background="{$IMAGE_PATH}qcBg.gif"><b >{$APP.LBL_CREATE_BUTTON_LABEL} {$APP.$QCMODULE}</b></td> 20 <td nowrap class="mailSubHeader moduleName" align=right><i>Quick Create</i></td></tr> 21 </table> 22 23 <table border=0 cellspacing=0 cellpadding=0 width="100%" class="small"> 24 <tr> 25 <td> 26 27 <!-- quick create UI starts --> 28 <table border=0 cellspacing=0 cellpadding=5 width=100% class=small bgcolor=white > 29 {foreach item=subdata from=$QUICKCREATE} 30 <tr> 31 {foreach key=mainlabel item=maindata from=$subdata} 32 {assign var="uitype" value="$maindata[0][0]"} 33 {assign var="fldlabel" value="$maindata[1][0]"} 34 {assign var="fldlabel_sel" value="$maindata[1][1]"} 35 {assign var="fldlabel_combo" value="$maindata[1][2]"} 36 {assign var="fldname" value="$maindata[2][0]"} 37 {assign var="fldvalue" value="$maindata[3][0]"} 38 {assign var="secondvalue" value="$maindata[3][1]"} 39 {if $uitype eq 2} 40 <td width=20% class="cellLabel" align=right><font color="red">*</font>{$fldlabel}</td> 41 <td width=30% align=left class="cellText"><input type="text" name="{$fldname}" value="{$fldvalue}" class=detailedViewTextBox onFocus="this.className='detailedViewTextBoxOn'" onBlur="this.className='detailedViewTextBox'"></td> 42 {elseif $uitype eq 11 || $uitype eq 1 || $uitype eq 13 || $uitype eq 7 || $uitype eq 9} 43 <td width=20% class="cellLabel" align=right>{$fldlabel}</td> 44 {if $fldname eq 'tickersymbol' && $MODULE eq 'Accounts'} 45 <td width=30% align=left class="cellText"><input type="text" name="{$fldname}" id ="{$fldname}" value="{$fldvalue}" class=detailedViewTextBox onFocus="this.className='detailedViewTextBoxOn';" onBlur="this.className='detailedViewTextBox';{if $fldname eq 'tickersymbol' && $MODULE eq 'Accounts'}sensex_info(){/if}"><span id="vtbusy_info" style="display:none;"><img src="{$IMAGE_PATH}vtbusy.gif" border="0"></span></td> 46 {else} 47 <td width=30% align=left class="cellText"><input type="text" name="{$fldname}" id ="{$fldname}" value="{$fldvalue}" class=detailedViewTextBox onFocus="this.className='detailedViewTextBoxOn'" onBlur="this.className='detailedViewTextBox'"></td> 48 {/if} 49 50 {elseif $uitype eq 19 || $uitype eq 20} 51 <td width=20% class="cellLabel" align=right> 52 {if $uitype eq 20}<font color="red">*</font>{/if} 53 {$fldlabel}</td> 54 <td colspan=3><textarea class="detailedViewTextBox" onFocus="this.className='detailedViewTextBoxOn'" name="{$fldname}" onBlur="this.className='detailedViewTextBox'" cols="90" rows="8">{$fldvalue}</textarea></td> 55 {elseif $uitype eq 21 || $uitype eq 24} 56 <td width=20% class="cellLabel" align=right> 57 {if $uitype eq 24} 58 <font color="red">*</font> 59 {/if} 60 {$fldlabel} 61 </td> 62 <td width=30% align=left class="cellText"><textarea value="{$fldvalue}" name="{$fldname}" class=detailedViewTextBox onFocus="this.className='detailedViewTextBoxOn'"onBlur="this.className='detailedViewTextBox'" rows=2>{$fldvalue}</textarea></td> 63 {elseif $uitype eq 15 || $uitype eq 16 || $uitype eq 111} 64 <td width="20%" class="cellLabel" align=right> 65 {if $uitype eq 16} <font color="red">*</font>{/if} 66 {$fldlabel} 67 </td> 68 <td width="30%" align=left class="cellText"> 69 <select name="{$fldname}"> 70 {foreach item=arr from=$fldvalue} 71 {foreach key=sel_value item=value from=$arr} 72 <option value="{$sel_value}" {$value}>{$MOD.$sel_value}</option> 73 {/foreach} 74 {/foreach} 75 </select> 76 </td> 77 {elseif $uitype eq 53} 78 <td width="20%" class="cellLabel" align=right> 79 {$fldlabel} 80 </td> 81 <td width="30%" align=left class="cellText"> 82 {assign var=check value=1} 83 {foreach key=key_one item=arr from=$fldvalue} 84 {foreach key=sel_value item=value from=$arr} 85 {if $value ne ''} 86 {assign var=check value=$check*0} 87 {else} 88 {assign var=check value=$check*1} 89 {/if} 90 {/foreach} 91 {/foreach} 92 {if $check eq 0} 93 {assign var=select_user value='checked'} 94 {assign var=style_user value='display:block'} 95 {assign var=style_group value='display:none'} 96 {else} 97 {assign var=select_group value='checked'} 98 {assign var=style_user value='display:none'} 99 {assign var=style_group value='display:block'} 100 {/if} 101 <input type="radio" name="assigntype" {$select_user} value="U" onclick="toggleAssignType(this.value)"> User 102 {if $secondvalue neq ''} 103 <input type="radio" name="assigntype" {$select_group} value="T" onclick="toggleAssignType(this.value)"> Group 104 {/if} 105 106 <span id="assign_user" style="{$style_user}"> 107 <select name="assigned_user_id"> 108 {foreach key=key_one item=arr from=$fldvalue} 109 {foreach key=sel_value item=value from=$arr} 110 <option value="{$key_one}" {$value}>{$sel_value}</option> 111 {/foreach} 112 {/foreach} 113 </select></span> 114 {if $secondvalue neq ''} 115 <span id="assign_team" style="{$style_group}"> 116 <select name="assigned_group_name">'; 117 {foreach key=key_one item=arr from=$secondvalue} 118 {foreach key=sel_value item=value from=$arr} 119 <option value="{$sel_value}" {$value}>{$sel_value}</option> 120 {/foreach} 121 {/foreach} 122 </select></span> 123 {/if} 124 </td> 125 {elseif $uitype eq 52 || $uitype eq 77} 126 <td width="20%" class="cellLabel" align=right> 127 {$fldlabel} 128 </td> 129 <td width="30%" align=left class="cellText"> 130 {if $uitype eq 52} 131 <select name="assigned_user_id"> 132 {elseif $uitype eq 77} 133 <select name="assigned_user_id1"> 134 {else} 135 <select name="{$fldname}"> 136 {/if} 137 138 {foreach key=key_one item=arr from=$fldvalue} 139 {foreach key=sel_value item=value from=$arr} 140 <option value="{$key_one}" {$value}>{$sel_value}</option> 141 {/foreach} 142 143 {/foreach} 144 </select> 145 </td> 146 {elseif $uitype eq 51} 147 {if $MODULE eq 'Accounts'} 148 {assign var='popuptype' value = 'specific_account_address'} 149 {else} 150 {assign var='popuptype' value = 'specific_contact_account_address'} 151 {/if} 152 <td width="20%" class="cellLabel" align=right>{$fldlabel}</td> 153 <td width="30%" align=left class="cellText"><input readonly size="9" name="account_name" style="border:1px solid #bababa;" type="text" value="{$fldvalue}"><input name="{$fldname}" type="hidden" value="{$secondvalue}"> <img src="{$IMAGE_PATH}select.gif" alt="Select" title="Select" LANGUAGE=javascript onclick='return window.open("index.php?module=Accounts&action=Popup&popuptype=specific&form=EditView&form_submit=false&fromlink=qcreate","test","width=600,height=400,resizable=1,scrollbars=1");' align="absmiddle" style='cursor:hand;cursor:pointer'> <input type="image" src="{$IMAGE_PATH}clear_field.gif" alt="Clear" title="Clear" LANGUAGE=javascript onClick="this.form.account_id.value=''; this.form.account_name.value='';return false;" align="absmiddle" style='cursor:hand;cursor:pointer'></td> 154 155 {elseif $uitype eq 50} 156 <td width="20%" class="cellLabel" align=right><font color="red">*</font>{$fldlabel}</td> 157 <td width="30%" align=left class="cellText"><input readonly name="account_name" type="text" value="{$fldvalue}"><input name="{$fldname}" type="hidden" value="{$secondvalue}"> <img src="{$IMAGE_PATH}select.gif" alt="Select" title="Select" LANGUAGE=javascript onclick='return window.open("index.php?module=Accounts&action=Popup&popuptype=specific&form=TasksEditView&form_submit=false&fromlink=qcreate","test","width=600,height=400,resizable=1,scrollbars=1");' align="absmiddle" style='cursor:hand;cursor:pointer'></td> 158 {elseif $uitype eq 73} 159 <td width="20%" class="cellLabel" align=right><font color="red">*</font>{$fldlabel}</td> 160 <td width="30%" align=left class="cellText"><input readonly name="account_name" type="text" value="{$fldvalue}"><input name="{$fldname}" type="hidden" value="{$secondvalue}"> <img src="{$IMAGE_PATH}select.gif" alt="Select" title="Select" LANGUAGE=javascript onclick='return window.open("index.php?module=Accounts&action=Popup&popuptype=specific_account_address&form=TasksEditView&form_submit=false&fromlink=qcreate","test","width=600,height=400,resizable=1,scrollbars=1");' align="absmiddle" style='cursor:hand;cursor:pointer'></td> 161 162 {elseif $uitype eq 75 || $uitype eq 81} 163 <td width="20%" class="cellLabel" align=right> 164 {if $uitype eq 81} 165 <font color="red">*</font> 166 {assign var="pop_type" value="specific_vendor_address"} 167 {else}{assign var="pop_type" value="specific"} 168 {/if} 169 {$fldlabel} 170 </td> 171 <td width="30%" align=left class="cellText"><input name="vendor_name" readonly size="8" type="text" style="border:1px solid #bababa;" value="{$fldvalue}"><input name="{$fldname}" type="hidden" value="{$secondvalue}"> <img src="{$IMAGE_PATH}select.gif" alt="Select" title="Select" LANGUAGE=javascript onclick='return window.open("index.php?module=Vendors&action=Popup&html=Popup_picker&popuptype={$pop_type}&form=EditView&fromlink=qcreate","test","width=600,height=400,resizable=1,scrollbars=1");' align="absmiddle" style='cursor:hand;cursor:pointer'> 172 {if $uitype eq 75} 173 <input type="image" src="{$IMAGE_PATH}clear_field.gif" alt="Clear" title="Clear" LANGUAGE=javascript onClick="this.form.vendor_id.value='';this.form.vendor_name.value='';return false;" align="absmiddle" style='cursor:hand;cursor:pointer'></td> 174 {/if} 175 {elseif $uitype eq 57} 176 <td width="20%" class="cellLabel" align=right>{$fldlabel}</td> 177 <td width="30%" align=left class="cellText"><input size="8" name="contact_name" readonly type="text" style="border:1px solid #bababa;" value="{$fldvalue}"><input name="{$fldname}" type="hidden" value="{$secondvalue}"> <img src="{$IMAGE_PATH}select.gif" alt="Select" title="Select" LANGUAGE=javascript onclick='return window.open("index.php?module=Contacts&action=Popup&html=Popup_picker&popuptype=specific&form=EditView&fromlink=qcreate","test","width=600,height=400,resizable=1,scrollbars=1");' align="absmiddle" style='cursor:hand;cursor:pointer'> <input type="image" src="{$IMAGE_PATH}clear_field.gif" alt="Clear" title="Clear" LANGUAGE=javascript onClick="this.form.contact_id.value=''; this.form.contact_name.value='';return false;" align="absmiddle" style='cursor:hand;cursor:pointer'></td> 178 179 {elseif $uitype eq 80} 180 <td width="20%" class="cellLabel" align=right>{$fldlabel}</td> 181 <td width="30%" align=left class="cellText"><input size="8" name="salesorder_name" readonly type="text" style="border:1px solid #bababa;" value="{$fldvalue}"><input name="{$fldname}" type="hidden" value="{$secondvalue}"> <img src="{$IMAGE_PATH}select.gif" alt="Select" title="Select" LANGUAGE=javascript onclick='return window.open("index.php?module=SalesOrder&action=Popup&html=Popup_picker&popuptype=specific&form=EditView&fromlink=qcreate","test","width=600,height=400,resizable=1,scrollbars=1");' align="absmiddle" style='cursor:hand;cursor:pointer'> <input type="image" src="{$IMAGE_PATH}clear_field.gif" alt="Clear" title="Clear" LANGUAGE=javascript onClick="this.form.salesorder_id.value=''; this.form.salesorder_name.value='';return false;" align="absmiddle" style='cursor:hand;cursor:pointer'></td> 182 183 {elseif $uitype eq 78} 184 <td width="20%" class="cellLabel" align=right>{$fldlabel}</td> 185 <td width="30%" align=left class="cellText"><input size="8" name="quote_name" readonly type="text" style="border:1px solid #bababa;" value="{$fldvalue}"><input name="{$fldname}" type="hidden" value="{$ID}"> <img src="{$IMAGE_PATH}select.gif" alt="Select" title="Select" LANGUAGE=javascript onclick='return window.open("index.php?module=Quotes&action=Popup&html=Popup_picker&popuptype=specific&form=EditView&fromlink=qcreate","test","width=600,height=400,resizable=1,scrollbars=1");' align="absmiddle" style='cursor:hand;cursor:pointer'> <input type="image" src="{$IMAGE_PATH}clear_field.gif" alt="Clear" title="Clear" LANGUAGE=javascript onClick="this.form.quote_id.value=''; this.form.quote_name.value='';return false;" align="absmiddle" style='cursor:hand;cursor:pointer'></td> 186 187 {elseif $uitype eq 76} 188 <td width="20%" class="cellLabel" align=right>{$fldlabel}</td> 189 <td width="30%" align=left class="cellText"><input size="8" name="potential_name" readonly type="text" style="border:1px solid #bababa;" value="{$fldvalue}"><input name="{$fldname}" type="hidden" value="{$secondvalue}"> <img src="{$IMAGE_PATH}select.gif" alt="Select" title="Select" LANGUAGE=javascript onclick='return window.open("index.php?module=Potentials&action=Popup&html=Popup_picker&popuptype=specific_potential_account_address&form=EditView&fromlink=qcreate","test","width=600,height=400,resizable=1,scrollbars=1");' align="absmiddle" style='cursor:hand;cursor:pointer'> <input type="image" src="{$IMAGE_PATH}clear_field.gif" alt="Clear" title="Clear" LANGUAGE=javascript onClick="this.form.potential_id.value=''; this.form.potential_name.value='';return false;" align="absmiddle" style='cursor:hand;cursor:pointer'></td> 190 191 {elseif $uitype eq 17} 192 <td width="20%" class="cellLabel" align=right>{$fldlabel}</td> 193 <td width="30%" align=left class="cellText"> http:// <input type="text" name="{$fldname}" style="border:1px solid #bababa;" class="detailedViewTextBox" onFocus="this.className='detailedViewTextBoxOn'"onBlur="this.className='detailedViewTextBox'" value="{$fldvalue}"></td> 194 195 {elseif $uitype eq 71 || $uitype eq 72} 196 <td width="20%" class="cellLabel" align=right> 197 {if $uitype eq 72} 198 <font color="red">*</font> 199 {/if} 200 {$fldlabel}</td> 201 <td width="30%" align=left class="cellText"><input name="{$fldname}" type="text" class=detailedViewTextBox onFocus="this.className='detailedViewTextBoxOn'" onBlur="this.className='detailedViewTextBox'" value="{$fldvalue}"></td> 202 203 {elseif $uitype eq 56} 204 <td width="20%" class="cellLabel" align=right>{$fldlabel}</td> 205 {if $fldname eq 'notime' && $ACTIVITY_MODE eq 'Events'} 206 {if $fldvalue eq 1} 207 <td width="30%" align=left class="cellText"><input name="{$fldname}" type="checkbox" onclick="toggleTime()" checked></td> 208 {else} 209 <td width="30%" align=left class="cellText"><input name="{$fldname}" type="checkbox" onclick="toggleTime()" ></td> 210 {/if} 211 {else} 212 {if $fldvalue eq 1} 213 <td width="30%" align=left class="cellText"><input name="{$fldname}" type="checkbox" checked></td> 214 {else} 215 <td width="30%" align=left class="cellText"><input name="{$fldname}" type="checkbox"></td> 216 {/if} 217 {/if} 218 {elseif $uitype eq 23 || $uitype eq 5 || $uitype eq 6} 219 <td width="20%" class="cellLabel" align=right> 220 {if $uitype eq 23 && $QCMODULE eq 'Event'} 221 {$APP.LBL_EVENT_ENDDATE} 222 {else} 223 {$fldlabel} 224 {/if} 225 </td> 226 <td width="30%" align=left class="cellText"> 227 {foreach key=date_value item=time_value from=$fldvalue} 228 {assign var=date_val value="$date_value"} 229 {assign var=time_val value="$time_value"} 230 {/foreach} 231 <input name="{$fldname}" id="jscal_field_{$fldname}" type="text" style="border:1px solid #bababa;" size="11" maxlength="10" value="{$date_val}"> 232 <img src="{$IMAGE_PATH}calendar.gif" id="jscal_trigger_{$fldname}"> 233 {if $uitype eq 6} 234 <input name="time_start" style="border:1px solid #bababa;" size="5" maxlength="5" type="text" value="{$time_val}"> 235 {/if} 236 {if $uitype eq 23 && $QCMODULE eq 'Event'} 237 <input name="time_end" style="border:1px solid #bababa;" size="5" maxlength="5" type="text" value="{$time_val}"> 238 <script id="date_calpopup23"> 239 getCalendarPopup('jscal_trigger_{$fldname}','jscal_field_{$fldname}','{$dateFormat}'); 240 </script> 241 {/if} 242 {foreach key=date_format item=date_str from=$secondvalue} 243 {assign var=dateFormat value="$date_format"} 244 {assign var=dateStr value="$date_str"} 245 {/foreach} 246 {if $uitype eq 5 || $uitype eq 23} 247 <br><font size=1><em old="(yyyy-mm-dd)">({$dateStr})</em></font> 248 {else} 249 <br><font size=1><em old="(yyyy-mm-dd)">({$dateStr})</em></font> 250 {/if} 251 <script id="date_calpopup"> 252 getCalendarPopup('jscal_trigger_{$fldname}','jscal_field_{$fldname}','{$dateFormat}') 253 </script> 254 </td> 255 256 {elseif $uitype eq 63} 257 <td width="20%" class="cellLabel" align=right> 258 {$fldlabel} 259 </td> 260 <td width="30%" align=left class="cellText"> 261 <input name="{$fldname}" type="text" size="2" maxlength="2" value="{$fldvalue}"> 262 <select name="duration_minutes"> 263 {foreach key=labelval item=selectval from=$secondvalue} 264 <option value="{$labelval}" {$selectval}>{$labelval}</option> 265 {/foreach} 266 </select> 267 268 {elseif $uitype eq 68 || $uitype eq 66 || $uitype eq 62} 269 <td width="20%" class="cellLabel" align=right> 270 <select name="parent_type" onChange='document.EditView.parent_name.value=""; document.EditView.parent_id.value=""'> 271 {section name=combo loop=$fldlabel} 272 <option value="{$fldlabel_combo[combo]}" {$fldlabel_sel[combo]}>{$fldlabel[combo]}</option> 273 {/section} 274 </select> 275 </td> 276 <td width="30%" align=left class="cellText"> 277 <input name="{$fldname}" type="hidden" value="{$secondvalue}"><input size="8" name="parent_name" readonly type="text" style="border:1px solid #bababa;" value="{$fldvalue}"> 278 <img src="{$IMAGE_PATH}select.gif" alt="Select" title="Select" LANGUAGE=javascript onclick='return window.open("index.php?module="+ document.EditView.parent_type.value +"&action=Popup&html=Popup_picker&form=HelpDeskEditView&fromlink=qcreate","test","width=600,height=400,resizable=1,scrollbars=1,top=150,left=200");' align="absmiddle" style='cursor:hand;cursor:pointer'> <input type="image" src="{$IMAGE_PATH}clear_field.gif" alt="Clear" title="Clear" LANGUAGE=javascript onClick="this.form.parent_id.value=''; this.form.parent_name.value=''; return false;" align="absmiddle" style='cursor:hand;cursor:pointer'></td> 279 280 {elseif $uitype eq 357} 281 <td width="20%" class="cellLabel" align=right>To: </td> 282 <td width="90%" colspan="3"> 283 <input name="{$fldname}" type="hidden" value="{$secondvalue}"> 284 <textarea readonly name="parent_name" cols="70" rows="2">{$fldvalue}</textarea> 285 <select name="parent_type"> 286 {foreach key=labelval item=selectval from=$fldlabel} 287 <option value="{$labelval}" {$selectval}>{$labelval}</option> 288 {/foreach} 289 </select> 290 <img src="{$IMAGE_PATH}select.gif" alt="Select" title="Select" LANGUAGE=javascript onclick='return window.open("index.php?module="+ document.EditView.parent_type.value +"&action=Popup&html=Popup_picker&form=HelpDeskEditView&fromlink=qcreate","test","width=600,height=400,resizable=1,scrollbars=1,top=150,left=200");' align="absmiddle" style='cursor:hand;cursor:pointer'> <input type="image" src="{$IMAGE_PATH}clear_field.gif" alt="Clear" title="Clear" LANGUAGE=javascript onClick="this.form.parent_id.value=''; this.form.parent_name.value=''; return false;" align="absmiddle" style='cursor:hand;cursor:pointer'></td> 291 <tr style="height:25px"> 292 <td width="20%" class="cellLabel" align=right>CC: </td> 293 <td width="30%" align=left class="cellText"> 294 <input name="ccmail" type="text" class=detailedViewTextBox onFocus="this.className='detailedViewTextBoxOn'" onBlur="this.className='detailedViewTextBox'" value=""></td> 295 <td width="20%" class="cellLabel" align=right>BCC: </td> 296 <td width="30%" align=left class="cellText"> 297 <input name="bccmail" type="text" class=detailedViewTextBox onFocus="this.className='detailedViewTextBoxOn'" onBlur="this.className='detailedViewTextBox'" value=""></td> 298 </tr> 299 300 {elseif $uitype eq 59} 301 <td width="20%" class="cellLabel" align=right> 302 {$fldlabel}</td> 303 <td width="30%" align=left class="cellText"> 304 <input name="{$fldname}" type="hidden" value="{$secondvalue}"> 305 <input name="product_name" readonly type="text" value="{$fldvalue}"> <img tabindex="{$vt_tab}" src="{$IMAGE_PATH}select.gif" alt="Select" title="Select" LANGUAGE=javascript onclick='return window.open("index.php?module=Products&action=Popup&html=Popup_picker&form=HelpDeskEditView&popuptype=specific&fromlink=qcreate","test","width=640,height=565,resizable=0,scrollbars=0,top=150,left=200");' align="absmiddle" style='cursor:hand;cursor:pointer'> <input type="image" src="{$IMAGE_PATH}clear_field.gif" alt="Clear" title="Clear" LANGUAGE=javascript onClick="this.form.product_id.value=''; this.form.product_name.value=''; return false;" align="absmiddle" style='cursor:hand;cursor:pointer'> 306 </td> 307 308 {elseif $uitype eq 55} 309 <td width="20%" class="cellLabel" align=right>{$fldlabel}</td> 310 <td width="30%" align=left class="cellText"> 311 <input type="text" name="{$fldname}" class=detailedViewTextBox onFocus="this.className='detailedViewTextBoxOn'" onBlur="this.className='detailedViewTextBox'" value= "{$secondvalue}"> 312 </td> 313 314 {elseif $uitype eq 22} 315 <td width="20%" class="cellLabel" align=right><font color="red">*</font>{$fldlabel}</td> 316 <td width="30%" align=left class="cellText"> 317 <textarea name="{$fldname}" cols="30" rows="2">{$fldvalue}</textarea> 318 </td> 319 320 {elseif $uitype eq 69} 321 <td width="20%" class="cellLabel" align=right>{$fldlabel}</td> 322 <td colspan="3" width="30%" align=left class="cellText"> 323 {if $MODULE eq 'Products'} 324 <input name="imagelist" type="hidden" value=""> 325 <div id="files_list" style="border: 1px solid grey; width: 500px; padding: 5px; background: rgb(255, 255, 255) none repeat scroll 0%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; font-size: x-small">Files Maximum 6 326 <input id="my_file_element" type="file" name="file_1" > 327 </div> 328 <script> 329 {*<!-- Create an instance of the multiSelector class, pass it the output target and the max number of files -->*} 330 var multi_selector = new MultiSelector( document.getElementById( 'files_list' ), 6 ); 331 {*<!-- Pass in the file element -->*} 332 multi_selector.addElement( document.getElementById( 'my_file_element' ) ); 333 </script> 334 </td> 335 {else} 336 <input name="{$fldname}" type="file" value="{$secondvalue}"/><input type="hidden" name="id" value=""/>{$fldvalue}</td> 337 {/if} 338 339 {elseif $uitype eq 61} 340 <td width="20%" class="cellLabel" align=right>{$fldlabel}</td> 341 <td colspan="3" width="30%" align=left class="cellText"><input name="{$fldname}" type="file" value="{$secondvalue}"/><input type="hidden" name="id" value=""/>{$fldvalue}</td> 342 {elseif $uitype eq 30} 343 <td width="20%" class="cellLabel" align=right>{$fldlabel}</td> 344 <td colspan="3" width="30%" align=left class="cellText"> 345 {assign var=check value=$secondvalue[0]} 346 {assign var=yes_val value=$secondvalue[1]} 347 {assign var=no_val value=$secondvalue[2]} 348 <input type="radio" name="set_reminder" value="Yes" {$check}> {$yes_val} <input type="radio" name="set_reminder" value="No"> {$no_val} 349 {foreach item=val_arr from=$fldvalue} 350 {assign var=start value="$val_arr[0]"} 351 {assign var=end value="$val_arr[1]"} 352 {assign var=sendname value="$val_arr[2]"} 353 {assign var=disp_text value="$val_arr[3]"} 354 {assign var=sel_val value="$val_arr[4]"} 355 <select name="{$sendname}"> 356 {section name=reminder start=$start max=$end loop=$end step=1 } 357 {if $smarty.section.reminder.index eq $sel_val} 358 {assign var=sel_value value="SELECTED"} 359 {/if} 360 <OPTION VALUE="{$smarty.section.reminder.index}" "{$sel_value}">{$smarty.section.reminder.index}</OPTION> 361 {/section} 362 </select> 363 {$disp_text} 364 {/foreach} 365 </td> 366 367 {else} 368 <td width="20%" class="cellLabel"> </td><td width="30%" class="cellText"> </td> 369 {/if} 370 {/foreach} 371 </tr> 372 {/foreach} 373 374 </table> 375 376 <!-- save cancel buttons --> 377 <table border=0 cellspacing=0 cellpadding=5 width=100% class=qcTransport> 378 <tr> 379 <td width=50% align=right><input title="{$APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="crmbutton small save" type="submit" name="button" value=" {$APP.LBL_SAVE_BUTTON_LABEL} " style="width:70px" ></td> 380 <td width=50% align=left> 381 <input title="{$APP.LBL_CANCEL_BUTTON_TITLE}" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" class="crmbutton small cancel" onclick="hide('qcform'); $('qccombo').options.selectedIndex=0;" type="button" name="button" value=" {$APP.LBL_CANCEL_BUTTON_LABEL} " style="width:70px"> 382 </td> 383 </tr> 384 </table> 385 386 </td> 387 </tr> 388 </table> 389 </td> 390 </tr> 391 </table> 392 {if $QCMODULE eq 'Event'} 393 <SCRIPT id="qcvalidate"> 394 var qcfieldname = new Array('subject','date_start','eventstatus','activitytype','due_date','time_end'); 395 var qcfieldlabel = new Array('Subject','Start Date & Time','Status','Activity Type','End Date & Time','End Date & Time'); 396 var qcfielddatatype = new Array('V~M','DT~M~time_start','V~O','V~O','D~M~OTH~GE~date_start~Start Date & Time','T~M'); 397 </SCRIPT> 398 {else} 399 <SCRIPT id="qcvalidate"> 400 var qcfieldname = new Array({$VALIDATION_DATA_FIELDNAME}); 401 var qcfieldlabel = new Array({$VALIDATION_DATA_FIELDLABEL}); 402 var qcfielddatatype = new Array({$VALIDATION_DATA_FIELDDATATYPE}); 403 </SCRIPT> 404 {/if} 405 </form> 406 </body>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 10:22:19 2007 | par Balluche grâce à PHPXref 0.7 |