[Vtigercrm-commits] [vtiger-commits] r7019 - in /vtigercrm/trunk/Smarty/templates: DisplayFields.tpl UserDetailView.tpl UserEditView.tpl
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Jun 13 06:06:34 EDT 2006
Author: richie
Date: Tue Jun 13 04:06:27 2006
New Revision: 7019
Log:
users module added in CRMEntity
Modified:
vtigercrm/trunk/Smarty/templates/DisplayFields.tpl
vtigercrm/trunk/Smarty/templates/UserDetailView.tpl
vtigercrm/trunk/Smarty/templates/UserEditView.tpl
Modified: vtigercrm/trunk/Smarty/templates/DisplayFields.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/DisplayFields.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/DisplayFields.tpl Tue Jun 13 04:06:27 2006
@@ -452,6 +452,104 @@
<input name="{$fldname}" type="file" value="{$secondvalue}"/>
<input type="hidden" name="id" value=""/>{$fldvalue}
</td>
+ {elseif $uitype eq 156}
+ <td width="20%" class="dvtCellLabel" align=right>
+ {$fldlabel}
+ </td>
+ {if $fldvalue eq 1}
+ <td width="30%" align=left class="dvtCellInfo">
+ <input name="{$fldname}" type="checkbox" checked>
+ </td>
+ {else}
+ <td width="30%" align=left class="dvtCellInfo">
+ <input name="{$fldname}" type="checkbox">
+ </td>
+ {/if}
+ {elseif $uitype eq 98}<!-- Role Selection Popup -->
+ <td width="20%" class="dvtCellLabel" align=right>
+ <font color="red">*</font>
+ {$fldlabel}
+ </td>
+ <td width="30%" align=left class="dvtCellInfo">
+ <input name="role_name" id="role_name" class="txtBox" value="{$secondvalue}" type="text">
+ <a href="javascript:openPopup();"><img src="{$IMAGE_PATH}select.gif" align="absmiddle" border="0"></a>
+ <input name="user_role" id="user_role" value="{$fldvalue}" type="hidden">
+ </td>
+ {elseif $uitype eq 104}<!-- Mandatory Email Fields -->
+ <td width=20% class="dvtCellLabel" align=right>
+ <font color="red">*</font>
+ {$fldlabel}
+ </td>
+ <td width=30% align=left class="dvtCellInfo"><input type="text" name="{$fldname}" id ="{$fldname}" value="{$fldvalue}" class=detailedViewTextBox onFocus="this.className='detailedViewTextBoxOn'" onBlur="this.className='detailedViewTextBox'"></td>
+ {elseif $uitype eq 115}<!-- for Status field Disabled for nonadmin -->
+ <td width="20%" class="dvtCellLabel" align=right>
+ {$fldlabel}
+ </td>
+ <td width="30%" align=left class="dvtCellInfo">
+ <select name="{$fldname}">
+ {foreach item=arr from=$fldvalue}
+ {foreach key=sel_value item=value from=$arr}
+ <option value="{$sel_value}" {$value}>{$sel_value}</option>
+ {/foreach}
+ {/foreach}
+ </select>
+ </td>
+ {elseif $uitype eq 105}
+ <td width="20%" class="dvtCellLabel" align=right>
+ {$fldlabel}
+ </td>
+ <td width="30%" align=left class="dvtCellInfo">
+ <input name="{$fldname}" type="file" value="{$maindata[3].0.name}"/>
+ <input type="hidden" name="id" value=""/>
+ {$maindata[3].0.name}
+ </td>
+ {elseif $uitype eq 103}
+ <td width="20%" class="dvtCellLabel" align=right>
+ {$fldlabel}
+ </td>
+ <td width="30%" colspan="3" align=left class="dvtCellInfo">
+ <input type="text" name="{$fldname}" value="{$fldvalue}" class=detailedViewTextBox onFocus="this.className='detailedViewTextBoxOn'" onBlur="this.className='detailedViewTextBox'">
+ </td>
+ {elseif $uitype eq 101}<!-- for reportsto field USERS POPUP -->
+ <td width="20%" class="dvtCellLabel" align=right>
+ {$fldlabel}
+ </td>
+ <td width="30%" colspan="3" align=left class="dvtCellInfo">
+ <input readonly name='{$fldname}' class="small" type="text" value='{$fldvalue}'><input name='reports_to_id' type="hidden" value='{$fldvalue}'> <input title="Change [Alt+C]" accessKey="C" type="button" class="small" value='{$UMOD.LBL_CHANGE}' name=btn1 LANGUAGE=javascript onclick='return window.open("index.php?module=Users&action=Popup&form=UsersEditView&form_submit=false","test","width=640,height=522,resizable=0,scrollbars=0");'>
+ </td>
+ {elseif $uitype eq 116}<!-- for currency in users details-->
+ <td width="20%" class="dvtCellLabel" align=right>
+ {$fldlabel}
+ </td>
+ <td width="30%" align=left class="dvtCellInfo">
+ <select name="{$fldname}">
+ {foreach item=arr key=uivalueid from=$fldvalue}
+ {foreach key=sel_value item=value from=$arr}
+ <option value="{$uivalueid}" {$value}>{$sel_value}</option>
+ {/foreach}
+ {/foreach}
+ </select>
+ </td>
+ {elseif $uitype eq 106}
+ <td width=20% class="dvtCellLabel" align=right>
+ <font color="red">*</font>{$fldlabel}
+ </td>
+ <td width=30% align=left class="dvtCellInfo">
+ {if $MODE eq 'edit'}
+ <input type="text" readonly name="{$fldname}" value="{$fldvalue}" class=detailedViewTextBox onFocus="this.className='detailedViewTextBoxOn'" onBlur="this.className='detailedViewTextBox'">
+ {else}
+ <input type="text" name="{$fldname}" value="{$fldvalue}" class=detailedViewTextBox onFocus="this.className='detailedViewTextBoxOn'" onBlur="this.className='detailedViewTextBox'">
+ {/if}
+ </td>
+ {elseif $uitype eq 99}
+ {if $MODE eq 'create'}
+ <td width=20% class="dvtCellLabel" align=right>
+ <font color="red">*</font>{$fldlabel}
+ </td>
+ <td width=30% align=left class="dvtCellInfo">
+ <input type="password" name="{$fldname}" value="{$fldvalue}" class=detailedViewTextBox onFocus="this.className='detailedViewTextBoxOn'" onBlur="this.className='detailedViewTextBox'">
+ </td>
+ {/if}
{elseif $uitype eq 30}
<td width="20%" class="dvtCellLabel" align=right>
{$fldlabel}
Modified: vtigercrm/trunk/Smarty/templates/UserDetailView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/UserDetailView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/UserDetailView.tpl Tue Jun 13 04:06:27 2006
@@ -11,11 +11,12 @@
-->*}
<script language="JavaScript" type="text/javascript" src="include/js/menu.js"></script>
<script language="JavaScript" type="text/javascript" src="include/js/ColorPicker2.js"></script>
-<script language="JavaScript" type="text/javascript" src="include/js/prototype.js"></script>
-<script language="JavaScript" type="text/javascript" src="include/js/slider.js"></script>
-<script language="JavaScript" type="text/javascript" src="include/js/prototype_fade.js"></script>
-<script language="JavaScript" type="text/javascript" src="include/js/effectspack.js"></script>
<script language="javascript" type="text/javascript" src="include/js/general.js"></script>
+<script language="JavaScript" type="text/javascript" src="include/js/dtlviewajax.js"></script>
+<span id="crmspanid" style="display:none;position:absolute;" onmouseover="show('crmspanid');">
+ <a class="link" align="right" href="javascript:;">Edit</a>
+</span>
+
<style type="text/css">@import url(themes/blue/style.css);</style>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
@@ -94,10 +95,8 @@
<td>
<table class="small" border="0" cellpadding="3" cellspacing="0" width="100%">
<tr >
+ <td id="prof" width="25%" align="center" nowrap="nowrap" class="dvtSelectedCell" onClick="fnVis('prof')"><b>{$UMOD.LBL_USER_LOGIN_ROLE}</b></td>
<td class="dvtTabCache" width="10" nowrap="nowrap"> </td>
- <td id="prof" width="25%" align="center" nowrap="nowrap" class="dvtSelectedCell" onClick="fnVis('prof')"><b>{$UMOD.LBL_USER_LOGIN_ROLE}</b></td>
- <td id="more" width="25%" align="center" nowrap="nowrap" class="dvtUnSelectedCell" onClick="fnVis('more')"><b>{$UMOD.LBL_USER_MORE_INFN}</b></td>
- <td id="addr" width="25%" align="center" nowrap="nowrap" class="dvtUnSelectedCell" onClick="fnVis('addr')"><b>{$UMOD.LBL_USER_ADDR_INFN}</b></td>
<td class="dvtTabCache" nowrap="nowrap" width="10"> </td>
</tr>
</table>
@@ -105,162 +104,50 @@
</tr>
<tr>
<td align="left" valign="top">
- <div id="mnuTab">
- <table class="dvtContentSpace" border="0" cellpadding="0" cellspacing="0" width="100%">
- <tr><td height="35"> </td></tr>
- <tr><td align="left">
- <table width="99%" border="0" cellspacing="0" cellpadding="5" align="center" class="small">
+ {foreach key=header item=detail from=$BLOCKS}
+ <table border=0 cellspacing=0 cellpadding=0 width=100% class="small">
<tr>
- <td colspan="4" class="detailedViewHeader"><b>{$UMOD.LBL_USER_INFORMATION}</b></td>
+ <td> </td>
+ <td> </td>
+ <td> </td>
+ <td align=right>
</tr>
<tr>
- <td class="dvtCellLabel" align="right"><span class="style1"><font color='red'>{$APP.LBL_REQUIRED_SYMBOL}</font></span>{$UMOD.LBL_USER_NAME} </td>
- <td class="dvtCellInfo">{$USER_NAME} </td>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_ADMIN} </td>
- <td class="dvtCellInfo"><input type="checkbox" name="is_admin" {$IS_ADMIN}/></td>
- </tr>
- {if $MODE eq 'edit'}
- <tr>
- <td class="dvtCellLabel" align="right" width="20%"><span class="style1"><font color='red'>{$APP.LBL_REQUIRED_SYMBOL}</font></span>{$UMOD.LBL_PASSWORD} </td>
- <td class="dvtCellInfo" width="20%"><input name="new_password" type="password" class="detailedViewTextBox" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" /></td>
- <td class="dvtCellLabel" width="20%" align="right"><span class="style1"><font color='red'>{$APP.LBL_REQUIRED_SYMBOL}</font></span>{$UMOD.LBL_CONFIRM_PASSWORD} </td>
- <td class="dvtCellInfo" width="20%"><input name="confirm_new_password" type="password" class="detailedViewTextBox" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" /></td>
+ {strip}
+ <td colspan=4 style="border-bottom:1px solid #999999;padding:5px;" bgcolor="#e5e5e5">
+ <b> {$header}</b>
+ </td>
+ {/strip}
</tr>
+ {foreach item=detail from=$detail}
+ <tr style="height:25px">
+ {foreach key=label item=data from=$detail}
+ {assign var=keyid value=$data.ui}
+ {assign var=keyval value=$data.value}
+ {assign var=keytblname value=$data.tablename}
+ {assign var=keyfldname value=$data.fldname}
+ {assign var=keyoptions value=$data.options}
+ {assign var=keysecid value=$data.secid}
+ {assign var=keyseclink value=$data.link}
+ {assign var=keycursymb value=$data.cursymb}
+ {assign var=keysalut value=$data.salut}
+ {assign var=keycntimage value=$data.cntimage}
+ {assign var=keyadmin value=$data.isadmin}
+
+ <input type="hidden" id="hdtxt_IsAdmin" value={$keyadmin}></input>
+ {if $label ne ''}
+ <td class="dvtCellLabel" align=right width=25%>{$label}</td>
+ {include file="DetailViewUI.tpl"}
+ {else}
+ <td class="dvtCellLabel" align=right> </td>
+ <td class="dvtCellInfo" align=left > </td>
{/if}
- <tr>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_FIRST_NAME} </td>
- <td class="dvtCellInfo">{$FIRST_NAME} </td>
- <td class="dvtCellLabel" align="right"><span class="style1"><font color='red'>{$APP.LBL_REQUIRED_SYMBOL}</font></span>{$UMOD.LBL_LAST_NAME}</td>
- <td class="dvtCellInfo">{$LAST_NAME} </td>
+ {/foreach}
</tr>
- <tr>
- <td class="dvtCellLabel" align="right"><span class="style1"><font color='red'>{$APP.LBL_REQUIRED_SYMBOL}</font></span>{$UMOD.LBL_USER_ROLE}</td>
- <td class="dvtCellInfo">{$ROLEASSIGNED} </td> <td class="dvtCellLabel" align="right">{$UMOD.LBL_GROUP_NAME}</td>
- <td class="dvtCellInfo">{$GROUPASSIGNED} </td>
- </tr>
- <tr>
- <td class="dvtCellLabel" align="right"><span class="style1"><font color='red'>{$APP.LBL_REQUIRED_SYMBOL}</font></span>{$UMOD.LBL_EMAIL}</td>
- <td class="dvtCellInfo"><a href="mailto:{$EMAIL1}" target="_blank">{$EMAIL1}</a> </td>
- <td class="dvtCellLabel" align="right"><span class="style1"><font color='red'>{$APP.LBL_REQUIRED_SYMBOL}</font></span>{$UMOD.LBL_STATUS}</td>
+ {/foreach}
+ </table>
+ {/foreach}
- <td class="dvtCellInfo">{$STATUS} </td>
- </tr>
- <tr><td colspan="4" class="dvtCellInfo" height="30"> </td></tr>
- <tr>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_ACTIVITY_VIEW}</td>
- <td class="dvtCellInfo">{$ACTIVITY_VIEW} </td>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_LEAD_VIEW}</td>
- <td span class="dvtCellInfo">{$LEAD_VIEW} </td>
- </tr>
- <tr>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_CURRENCY_NAME}</td>
- <td span class="dvtCellInfo">{$CURRENCY_NAME} </td>
- <td class="dvtCellLabel" align="right"></td>
- <td class="dvtCellInfo"> </td>
- </tr>
- <tr><td colspan="4" height="30"> </td></tr>
- </table>
- </td></tr>
- </table>
- </div>
- <div id="mnuTab1" >
- <table class="dvtContentSpace" border="0" cellpadding="0" cellspacing="0" width="100%">
- <tr><td height="35"> </td></tr>
- <tr><td align="left">
- <table width="99%" border="0" cellspacing="0" cellpadding="5" align="center" class="small">
- <tr>
- <td colspan="4" class="detailedViewHeader"><b>{$UMOD.LBL_USER_MORE_INFN}</b></td>
- </tr>
- <tr>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_TITLE}</td>
- <td class="dvtCellInfo">{$TITLE} </td>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_OFFICE_PHONE}</td>
- <td class="dvtCellInfo">{$PHONE_WORK} </td>
- </tr>
- <tr>
- <td class="dvtCellLabel" align="right" width="20%">{$UMOD.LBL_DEPARTMENT}</td>
- <td class="dvtCellInfo" width="20%">{$DEPARTMENT} </td>
- <td class="dvtCellLabel" width="20%" align="right">{$UMOD.LBL_MOBILE_PHONE}</td>
- <td class="dvtCellInfo" width="20%">{$PHONE_MOBILE} </td>
- </tr>
- <tr>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_REPORTS_TO}</td>
- <td class="dvtCellInfo" width="20%">{$REPORTS_TO_NAME}{$REPORTS_TO_ID} </td>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_OTHER_PHONE}</td>
- <td class="dvtCellInfo">{$PHONE_OTHER} </td>
- </tr>
- <tr>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_OTHER_EMAIL}</td>
- <td class="dvtCellInfo">{$EMAIL2} </td>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_FAX}</td>
- <td class="dvtCellInfo">{$PHONE_FAX} </td>
- </tr>
- <tr>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_YAHOO_ID}</td>
- <td class="dvtCellInfo">{$YAHOO_ID} </td>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_HOME_PHONE}</td>
- <td class="dvtCellInfo">{$PHONE_HOME} </td>
- </tr>
- <tr>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_DATE_FORMAT}</td>
- <td class="dvtCellInfo" width="30%">{$DATE_FORMAT} </td>
- <td class="dvtCellLabel" align="right"> </td>
- <td class="dvtCellInfo"> </td>
- </tr>
- <tr>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_SIGNATURE}</td>
- <td class="dvtCellInfo">{$SIGNATURE} </td>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_NOTES}</td>
- <td span class="dvtCellInfo">{$DESCRIPTION} </td>
- </tr>
- <tr><td colspan="4" height="30"> </td></tr>
- </table>
- </td></tr>
- </table>
- </div>
- <div id="mnuTab2" >
- <table class="dvtContentSpace" border="0" cellpadding="0" cellspacing="0" width="100%">
- <tr><td height="35"> </td></tr>
- <tr><td align="left">
- <table width="99%" border="0" cellspacing="0" cellpadding="5" align="center" class="small">
- <tr>
- <td colspan="4" class="detailedViewHeader"><b>{$UMOD.LBL_USER_ADDR_INFN}</b></td>
- </tr>
- <tr>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_ADDRESS}</td>
- <td class="dvtCellInfo">{$ADDRESS_STREET} </td>
- <td class="dvtCellInfo" > </td>
- <td class="dvtCellInfo"> </td>
- </tr>
- <tr>
- <td class="dvtCellLabel" align="right" width="20%">{$UMOD.LBL_CITY}</td>
- <td class="dvtCellInfo" width="20%">{$ADDRESS_CITY} </td>
- <td class="dvtCellInfo" width="20%"> </td>
- <td class="dvtCellInfo" width="20%"> </td>
- </tr>
- <tr>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_STATE}</td>
- <td class="dvtCellInfo">{$ADDRESS_STATE} </td>
- <td class="dvtCellInfo"> </td>
- <td class="dvtCellInfo"> </td>
- </tr>
- <tr>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_POSTAL_CODE}</td>
- <td class="dvtCellInfo">{$ADDRESS_POSTALCODE} </td>
- <td class="dvtCellInfo"> </td>
- <td class="dvtCellInfo"> </td>
- </tr>
- <tr>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_COUNTRY}</td>
- <td class="dvtCellInfo">{$ADDRESS_COUNTRY} </td>
- <td class="dvtCellInfo" > </td>
- <td class="dvtCellInfo"> </td>
- </tr>
- <tr><td colspan="4" height="30"> </td></tr>
- </table>
- </td></tr>
- </table>
- </div>
</td>
</tr>
Modified: vtigercrm/trunk/Smarty/templates/UserEditView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/UserEditView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/UserEditView.tpl Tue Jun 13 04:06:27 2006
@@ -115,11 +115,8 @@
<td>
<table class="small" border="0" cellpadding="3" cellspacing="0" width="100%">
<tr>
+ <td id="prof" width="25%" align="center" nowrap="nowrap" class="dvtSelectedCell" onclick="fnVis('prof')" ><b>{$UMOD.LBL_USER_LOGIN_ROLE}</b></td>
<td class="dvtTabCache" width="10" nowrap="nowrap"> </td>
- <td id="prof" width="25%" align="center" nowrap="nowrap" class="dvtSelectedCell" onclick="fnVis('prof')" ><b>{$UMOD.LBL_USER_LOGIN_ROLE}</b></td>
- <td id="more" width="25%" align="center" nowrap="nowrap" class="dvtUnSelectedCell" onclick="fnVis('more')"><b>{$UMOD.LBL_USER_MORE_INFN}</b></td>
- <td id="addr" width="25%" align="center" nowrap="nowrap" class="dvtUnSelectedCell" onclick="fnVis('addr')"><b>{$UMOD.LBL_USER_ADDR_INFN}</b></td>
- <td class="dvtTabCache" nowrap="nowrap" width="10"> </td>
</tr>
</table>
</td>
@@ -131,194 +128,21 @@
<tr><td height="35"> </td></tr>
<tr><td align="left">
<table width="99%" border="0" cellspacing="0" cellpadding="5" align="center" class="small">
- <tr>
- {if $MODE eq 'edit'}
- <td colspan="4" class="detailedViewHeader"><b>{$APP.LBL_EDIT} {$UMOD.LBL_USER_INFORMATION}</b></td>
- {else}
- <td colspan="4" class="detailedViewHeader"><b>{$UMOD.LBL_NEW_FORM_TITLE}</b></td>
- {/if}
- </tr>
- <tr>
- <td class="dvtCellLabel" align="right"><span class="style1"><font color='red'>{$APP.LBL_REQUIRED_SYMBOL}</font></span>{$UMOD.LBL_USER_NAME} </td>
- <td class="dvtCellInfo"><input type="text" id="user_name" name="user_name" value='{$USER_NAME}' class="detailedViewTextBox" onFocus="this.className='detailedViewTextBoxOn'" onBlur="this.className='detailedViewTextBox'"{$USERNAME_READONLY} /></td>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_ADMIN} </td>
- <td class="dvtCellInfo"><input type="checkbox" name="is_admin" {$DISABLED} {$IS_ADMIN}/></td>
- </tr>
- {if $MODE neq 'edit'}
- <tr>
- <td class="dvtCellLabel" align="right" width="20%"><span class="style1"><font color='red'>{$APP.LBL_REQUIRED_SYMBOL}</font></span>{$UMOD.LBL_PASSWORD} </td>
- <td class="dvtCellInfo" width="20%"><input name="new_password" type="password" class="detailedViewTextBox" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" /></td>
- <td class="dvtCellLabel" width="20%" align="right"><span class="style1"><font color='red'>{$APP.LBL_REQUIRED_SYMBOL}</font></span>{$UMOD.LBL_CONFIRM_PASSWORD} </td>
- <td class="dvtCellInfo" width="20%"><input name="confirm_new_password" type="password" class="detailedViewTextBox" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" /></td>
- </tr>
- {/if}
- <tr>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_FIRST_NAME} </td>
- <td class="dvtCellInfo"><input type="text" name="first_name" value='{$FIRST_NAME}' class="detailedViewTextBox" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" /></td>
- <td class="dvtCellLabel" align="right"><span class="style1"><font color='red'>{$APP.LBL_REQUIRED_SYMBOL}</font></span>{$UMOD.LBL_LAST_NAME}</td>
- <td class="dvtCellInfo"><input type="text" name="last_name" value='{$LAST_NAME}' class="detailedViewTextBox" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" /></td>
- </tr>
- <tr>
- <td class="dvtCellLabel" align="right"><span class="style1"><font color='red'>{$APP.LBL_REQUIRED_SYMBOL}</font></span>{$UMOD.LBL_USER_ROLE}</td>
- <td class="dvtCellInfo"><!-- {$USER_ROLE} -->
- <input type="text" name="role_name" id="role_name" value="{$ROLENAME}" class="txtBox" readonly="readonly">
- {$ROLEPOPUPBUTTON}
- <input type="hidden" name="user_role" id="user_role" value="{$USERROLE}">
- </td>
+
+ {foreach key=header item=data from=$BLOCKS}
+ <tr>
+ <td colspan=4 class="detailedViewHeader">
+ <b>{$header}</b>
+ </td>
+ </tr>
+ <!-- Handle the ui types display -->
+ {include file="DisplayFields.tpl"}
+
+ {/foreach}
- <td class="dvtCellLabel" align="right"><span class="style1"><font color='red'>{$APP.LBL_REQUIRED_SYMBOL}</font></span>{$UMOD.LBL_EMAIL}</td>
- <td class="dvtCellInfo"><input type="text" name="email1" value='{$EMAIL1}' class="detailedViewTextBox" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" /></td>
- </tr>
- <tr>
-
- <td class="dvtCellLabel" align="right"><span class="style1"><font color='red'>{$APP.LBL_REQUIRED_SYMBOL}</font></span>{$UMOD.LBL_STATUS}</td>
- {$USER_STATUS_OPTIONS}
- <td class="dvtCellInfo" colspan="2" > </td>
- </tr>
- <tr><td colspan="4" class="dvtCellInfo" height="30"> </td></tr>
- <tr>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_ACTIVITY_VIEW}</td>
- <td class="dvtCellInfo">{$ACTIVITY_VIEW}</td>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_LEAD_VIEW}</td>
- <td span class="dvtCellInfo">{$LEAD_VIEW}</td>
- </tr>
- <tr>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_CURRENCY_NAME}</td>
- <td span class="dvtCellInfo">{$CURRENCY_NAME}</td>
- <td class="dvtCellLabel" align="right"></td>
- <td class="dvtCellInfo"> </td>
- </tr>
- <tr><td colspan="4" height="30"> </td></tr>
- </table>
- </td></tr>
- </table>
- </div>
- <div id="mnuTab1">
- <table class="dvtContentSpace" border="0" cellpadding="0" cellspacing="0" width="100%">
- <tr><td height="35"> </td></tr>
- <tr><td align="left">
- <table width="99%" border="0" cellspacing="0" cellpadding="5" align="center" class="small">
- <tr>
- {if $MODE eq 'edit'}
- <td colspan="4" class="detailedViewHeader"><b>{$APP.LBL_EDIT} {$UMOD.LBL_USER_INFORMATION}</b></td>
- {else}
- <td colspan="4" class="detailedViewHeader"><b>{$UMOD.LBL_NEW_FORM_TITLE}</b></td>
- {/if}
- </tr>
- <tr>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_TITLE}</td>
- <td class="dvtCellInfo"><input type="text" name="title" value='{$TITLE}' class="detailedViewTextBox" onFocus="this.className='detailedViewTextBoxOn'" onBlur="this.className='detailedViewTextBox'" /></td>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_OFFICE_PHONE}</td>
- <td class="dvtCellInfo"><input type="text" name="phone_work" value='{$PHONE_WORK}' class="detailedViewTextBox" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" /></td>
- </tr>
- <tr>
- <td class="dvtCellLabel" align="right" width="20%">{$UMOD.LBL_DEPARTMENT}</td>
- <td class="dvtCellInfo" width="20%"><input type="text" name="department" value='{$DEPARTMENT}' class="detailedViewTextBox" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" /></td>
- <td class="dvtCellLabel" width="20%" align="right">{$UMOD.LBL_MOBILE_PHONE}</td>
-
- <td class="dvtCellInfo" width="20%"><input type="text" value='{$PHONE_MOBILE}' name="phone_mobile" class="detailedViewTextBox" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" /></td>
- </tr>
- <tr>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_REPORTS_TO}</td>
- <td class="dvtCellInfo" width="20%"><input readonly name='reports_to_name' class="small" type="text" value='{$REPORTS_TO_NAME}'><input name='reports_to_id' type="hidden" value='{$REPORTS_TO_ID}'> <input title="Change [Alt+C]" accessKey="C" type="button" class="small" value='{$UMOD.LBL_CHANGE}' name=btn1 LANGUAGE=javascript onclick='return window.open("index.php?module=Users&action=Popup&form=UsersEditView&form_submit=false","test","width=640,height=522,resizable=0,scrollbars=0");'></td>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_OTHER_PHONE}</td>
- <td class="dvtCellInfo"><input type="text" name="phone_other" value='{$PHONE_OTHER}' class="detailedViewTextBox" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" /></td>
- </tr>
- <tr>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_OTHER_EMAIL}</td>
- <td class="dvtCellInfo"><input type="text" name="email2" value='{$EMAIL2}' class="detailedViewTextBox" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" /></td>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_FAX}</td>
- <td class="dvtCellInfo"><input type="text" name="phone_fax" value='{$PHONE_FAX}' class="detailedViewTextBox" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" /></td>
- </tr>
- <tr>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_YAHOO_ID}</td>
- <td class="dvtCellInfo"><input type="text" name="yahoo_id" value='{$YAHOO_ID}' class="detailedViewTextBox" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" /></td>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_HOME_PHONE}</td>
- <td class="dvtCellInfo"><input type="text" name="phone_home" value='{$PHONE_HOME}' class="detailedViewTextBox" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" /></td>
- </tr>
-
- <tr>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_USER_IMAGE}</td
->
- <td class="dvtCellInfo"><input name="imagename" value="" type="file" class="small"></td>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_DATE_FORMAT}</td>
- <td class="dvtCellInfo" width="30%">{$DATE_FORMAT}</td>
- </tr>
-
-
- <tr><td class="dvtCellLabel" align="right">
- {$UMOD.LBL_TAG_CLOUD}
- </td>
- <td colspan=3 class="dvtCellInfo"><input name='tagcloud' type="text" size='40' maxlength='250' value="{$CLOUD_TAG}" class="detailedViewTextBox" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'"></td>
- </tr>
- <tr>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_SIGNATURE}</td>
- <td class="dvtCellInfo"><textarea name="signature" rows="3" class="detailedViewTextBox" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" >{$SIGNATURE}</textarea></td>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_NOTES}</td>
- <td span class="dvtCellInfo"><textarea name="description" rows="3" class="detailedViewTextBox" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" >{$DESCRIPTION}</textarea>
- </td>
- </tr>
- <tr><td colspan="4" height="30"> </td></tr>
- </table>
- </td></tr>
- </table>
- </div>
-
- <div id="mnuTab2">
- <table class="dvtContentSpace" border="0" cellpadding="0" cellspacing="0" width="100%">
- <tr><td height="35"> </td></tr>
- <tr><td align="left">
- <table width="99%" border="0" cellspacing="0" cellpadding="5" align="center" class="small">
- <tr>
- {if $MODE eq 'edit'}
- <td colspan="4" class="detailedViewHeader"><b>{$APP.LBL_EDIT} {$UMOD.LBL_USER_INFORMATION}</b></td>
- {else}
- <td colspan="4" class="detailedViewHeader"><b>{$UMOD.LBL_NEW_FORM_TITLE}</b></td>
- {/if}
- </tr>
- <tr>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_ADDRESS}</td>
- <td class="dvtCellInfo"><textarea name="address_street" rows="3" class="detailedViewTextBox" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" >{$ADDRESS_STREET}</textarea></td>
- <td class="dvtCellInfo" > </td>
- <td class="dvtCellInfo"> </td>
- </tr>
- <tr>
- <td class="dvtCellLabel" align="right" width="20%">{$UMOD.LBL_CITY}</td>
- <td class="dvtCellInfo" width="20%"><input type="text" name="address_city" value='{$ADDRESS_CITY}' class="detailedViewTextBox" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" /></td>
- <td class="dvtCellInfo" width="20%"> </td>
- <td class="dvtCellInfo" width="20%"> </td>
- </tr>
- <tr>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_STATE}</td>
- <td class="dvtCellInfo"><input type="text" value='{$ADDRESS_STATE}' name="address_state" class="detailedViewTextBox" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" /></td>
- <td class="dvtCellInfo"> </td>
- <td class="dvtCellInfo"> </td>
- </tr>
- <tr>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_POSTAL_CODE}</td>
- <td class="dvtCellInfo"><input type="text" value='{$ADDRESS_POSTALCODE}' name="address_postalcode" class="detailedViewTextBox" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" /></td>
-
- <td class="dvtCellInfo"> </td>
- <td class="dvtCellInfo"> </td>
- </tr>
- <tr>
- <td class="dvtCellLabel" align="right">{$UMOD.LBL_COUNTRY}</td>
- <td class="dvtCellInfo"><input type="text" value='{$ADDRESS_COUNTRY}' name="address_country" class="detailedViewTextBox" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" /></td>
- <td class="dvtCellInfo" > </td>
- <td class="dvtCellInfo"> </td>
- </tr>
- <tr><td colspan="4" height="30"> </td></tr>
- </table>
- </td></tr>
- </table>
- </div>
- </td>
- </tr>
-
- <tr><td> </td></tr>
<tr>
- <td><div align="center">
+ <td colspan=4><div align="center">
<input title="{$APP.LBL_SAVE_BUTTON_TITLE}" accesskey="{$APP.LBL_SAVE_BUTTON_KEY}" class="small" name="button" value=" {$APP.LBL_SAVE_BUTTON_LABEL} " onclick="this.form.action.value='Save'; return verify_data(EditView)" style="width: 70px;" type="button" />
<input title="{$APP.LBL_CANCEL_BUTTON_TITLE}" accesskey="{$APP.LBL_CANCEL_BUTTON_KEY}" class="small" name="button" value=" {$APP.LBL_CANCEL_BUTTON_LABEL} " onclick="window.history.back()" style="width: 70px;" type="button" />
</div></td>
More information about the vtigercrm-commits
mailing list