[Vtigercrm-commits] [vtiger-commits] r7238 - /vtigercrm/trunk/Smarty/templates/Settings/EditCompanyInfo.tpl

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Sat Jun 17 10:43:45 EDT 2006


Author: richie
Date: Sat Jun 17 08:43:41 2006
New Revision: 7238

Log:
Update company info file according to new ui

Modified:
    vtigercrm/trunk/Smarty/templates/Settings/EditCompanyInfo.tpl

Modified: vtigercrm/trunk/Smarty/templates/Settings/EditCompanyInfo.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/Settings/EditCompanyInfo.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/Settings/EditCompanyInfo.tpl Sat Jun 17 08:43:41 2006
@@ -9,134 +9,134 @@
   *
  ********************************************************************************/
 -->*}
+<script language="JAVASCRIPT" type="text/javascript" src="include/js/smoothscroll.js"></script>
 <script language="JavaScript" type="text/javascript" src="include/js/menu.js"></script>
-<style type="text/css">@import url(themes/blue/style.css);</style>
-<table width="100%" border="0" cellpadding="0" cellspacing="0" class="small">
-<tr>
-	{include file='SettingsMenu.tpl'}
-<td width="75%" valign="top">
-
-<table width="100%" border="0" cellpadding="0" cellspacing="0" height="100%" class="small">
-<td class="showPanelBg" valign="top" width="100%" colspan="3" style="padding-left:20px; "><br/>
-<span class="lvtHeaderText"><b><a href="index.php?module=Settings&action=index&parenttab=Settings">{$MOD.LBL_SETTINGS} </a> > {$MOD.LBL_CONFIGURATION} > {$MOD.LBL_COMPANY_INFO}</b></span>
-<hr noshade="noshade" size="1" />
-</td>
-</tr>
-<tr>
-<td width="75%" style="padding-left:20px;" valign="top">
-	
+<br>
+<table align="center" border="0" cellpadding="0" cellspacing="0" width="98%">
+<tbody><tr>
+        <td valign="top"><img src="{$IMAGE_PATH}showPanelTopLeft.gif"></td>
+        <td class="showPanelBg" style="padding: 10px;" valign="top" width="100%">
+<br>
 	<form action="index.php?module=Settings&action=add2db" method="post" name="index" enctype="multipart/form-data">
  	<input type="hidden" name="return_module" value="Settings">
  	<input type="hidden" name="parenttab" value="Settings">
-    <input type="hidden" name="return_action" value="OrganizationConfig">
-	<table align="center" border="0" cellpadding="0" cellspacing="0" width="95%" class="small">
-	<tbody><tr>
-	<td style="font-size: 1px; font-family: Arial,Helvetica,sans-serif;" height="6" width="7"><img src="{$IMAGE_PATH}top_left.jpg" align="top"></td>
-	<td style="font-size: 1px; font-family: Arial,Helvetica,sans-serif; height: 6px;" bgcolor="#ebebeb"></td>
-	<td style="font-size: 1px; font-family: Arial,Helvetica,sans-serif;" height="6" width="8"><img src="{$IMAGE_PATH}top_right.jpg" align="top" height="6" width="8"></td>
+    	<input type="hidden" name="return_action" value="OrganizationConfig">
+	<div align=center>
+			{include file="SetMenu.tpl"}	
+				<!-- DISPLAY -->
+				<table border=0 cellspacing=0 cellpadding=5 width=100% class="settingsSelUITopLine">
+				<tr>
+					<td width=50 rowspan=2 valign=top><img src="{$IMAGE_PATH}company.gif" width="48" height="48" border=0 ></td>
+					<td class=heading2 valign=bottom><b><a href="index.php?module=Settings&action=index&parenttab=Settings">{$MOD.LBL_SETTINGS}</a> > {$MOD.LBL_EDIT} {$MOD.LBL_COMPANY_DETAILS} </b></td>
+				</tr>
+				<tr>
+					<td valign=top class="small">{$MOD.LBL_COMPANY_DESC}</td>
+				</tr>
+				</table>
+				
+				<br>
+				<table border=0 cellspacing=0 cellpadding=10 width=100% >
+				<tr>
+				<td>
+				
+					<table border=0 cellspacing=0 cellpadding=5 width=100% class="tableHeading">
+					<tr>
+						<td class="big"><strong>{$MOD.LBL_COMPANY_DETAILS} </strong>
+						{$ERRORFLAG}<br>
+						</td>
+						<td class="small" align=right>
+							<input title="{$APP.LBL_SAVE_BUTTON_LABEL}" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="crmButton small save" type="submit" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}" onclick="return verify_data(form,'{$MOD.LBL_ORGANIZATION_NAME}');" >
+							<input title="{$APP.LBL_CANCEL_BUTTON_LABEL}" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" class="crmButton small cancel" onclick="window.history.back()" type="button" name="button" value="{$APP.LBL_CANCEL_BUTTON_LABEL}">
+						</td>
+					</tr>
+					</table>
+					
+					<table border=0 cellspacing=0 cellpadding=0 width=100% class="listRow">
+					<tr>
+						<td class="small" valign=top ><table width="100%"  border="0" cellspacing="0" cellpadding="5">
+                          <tr>
+                            <td width="20%" class="small cellLabel"><font color="red">*</font><strong>{$MOD.LBL_ORGANIZATION_NAME}</strong></td>
+                            <td width="80%" class="small cellText">
+				<input type="text" name="organization_name" class="detailedViewTextBox small" value="{$ORGANIZATIONNAME}">
+				<input type="hidden" name="org_name" value="{$ORGANIZATIONNAME}">
+			    </strong></td>
+                          </tr>
+                          <tr valign="top">
+                            <td class="small cellLabel"><strong>{$MOD.LBL_ORGANIZATION_LOGO}</strong></td>
+			    {if $ORGANIZATIONLOGONAME neq ''}	
+                            <td class="small cellText" style="background-image: url(test/logo/{$ORGANIZATIONLOGONAME}); background-position: left; background-repeat: no-repeat;" width="48" height="48" border="0" >
+			    {else}
+                            <td class="small cellText" style="background-image: url(include/images/noimage.gif); background-position: left; background-repeat: no-repeat;" width="48" height="48" border="0" >
+			     {/if}	
+				<br><br><br><br>
+                             {$MOD.LBL_SELECT_LOGO} 
+				<INPUT TYPE="HIDDEN" NAME="MAX_FILE_SIZE" VALUE="800000">
+		                <INPUT TYPE="HIDDEN" NAME="PREV_FILE" VALUE="{$ORGANIZATIONLOGONAME}">	 
+                                <input type="file" name="binFile" class="small" value="{$ORGANIZATIONLOGONAME}">[{$ORGANIZATIONLOGONAME}]
+			      </td>
+                          </tr>
+                          <tr>
+                            <td class="small cellLabel"><strong>{$MOD.LBL_ORGANIZATION_ADDRESS}</strong></td>
+                            <td class="small cellText"><input type="text" name="organization_address" class="detailedViewTextBox small" value="{$ORGANIZATIONADDRESS}"></td>
+                          </tr>
+                          <tr> 
+                            <td class="small cellLabel"><strong>{$MOD.LBL_ORGANIZATION_CITY}</strong></td>
+                            <td class="small cellText"><input type="text" name="organization_city" class="detailedViewTextBox small" value="{$ORGANIZATIONCITY}"></td>
+                          </tr>
+                          <tr>
+                            <td class="small cellLabel"><strong>{$MOD.LBL_ORGANIZATION_STATE}</strong></td>
+                            <td class="small cellText"><input type="text" name="organization_state" class="detailedViewTextBox small" value="{$ORGANIZATIONSTATE}"></td>
+                          </tr>
+                          <tr>
+                            <td class="small cellLabel"><strong>{$MOD.LBL_ORGANIZATION_CODE}</strong></td>
+                            <td class="small cellText"><input type="text" name="organization_code" class="detailedViewTextBox small" value="{$ORGANIZATIONCODE}"></td>
+                          </tr>
+                          <tr>
+                            <td class="small cellLabel"><strong>{$MOD.LBL_ORGANIZATION_COUNTRY}</strong></td>
+                            <td class="small cellText"><input type="text" name="organization_country" class="detailedViewTextBox small" value="{$ORGANIZATIONCOUNTRY}"></td>
+
+                          </tr>
+                          <tr>
+                            <td class="small cellLabel"><strong>{$MOD.LBL_ORGANIZATION_PHONE}</strong></td>
+                            <td class="small cellText"><input type="text" name="organization_phone" class="detailedViewTextBox small" value="{$ORGANIZATIONPHONE}"></td>
+                          </tr>
+                          <tr>
+                            <td class="small cellLabel"><strong>{$MOD.LBL_ORGANIZATION_FAX}</strong></td>
+                            <td class="small cellText"><input type="text" name="organization_fax" class="detailedViewTextBox small" value="{$ORGANIZATIONFAX}"></td>
+                          </tr>
+                          <tr>
+                            <td class="small cellLabel"><strong>{$MOD.LBL_ORGANIZATION_WEBSITE}</strong></td>
+                            <td class="small cellText"><input type="text" name="organization_website" class="detailedViewTextBox small" value="{$ORGANIZATIONWEBSITE}"></td>
+                          </tr>
+                        </table>
+						
+						</td>
+					  </tr>
+					</table>
+					<table border=0 cellspacing=0 cellpadding=5 width=100% >
+					<tr>
+					  <td class="small" nowrap align=right><a href="#top">{$MOD.LBL_SCROLL}</a></td>
+					</tr>
+					</table>
+				</td>
+				</tr>
+				</table>
+			
+			
+			
+			</td>
+			</tr>
+			</table>
+		</td>
 	</tr>
-	<tr>
-
-	<td bgcolor="#ebebeb" width="7"></td>
-	<td style="padding-left: 10px; padding-top: 10px; vertical-align: top;" bgcolor="#ececec">
-	<table border="0" cellpadding="10" cellspacing="0" width="100%" class="small">
-	<tbody><tr>
-	{if $ORGANIZATIONLOGONAME neq ''}
-	<td rowspan="11" style="background-image: url(test/logo/{$ORGANIZATIONLOGONAME}); background-position: center; background-repeat: no-repeat;" bgcolor="#ffffff" width="25%">&nbsp;</td>
-	{else}
-	<td rowspan="11" style="background-image: url(include/images/noimage.gif); background-position: center; background-repeat: no-repeat;" bgcolor="#ffffff" width="25%">&nbsp;</td>
-	{/if}
-	<td colspan="2" class="genHeaderBig" width="75%">{$ORGANIZATIONNAME}
-	{$ERRORFLAG}
-	<br><hr> </td>
-	</tr>
-	<tr>
-
-	<td align="right" width="25%"><font color="red">*</font><b>{$MOD.LBL_ORGANIZATION_NAME} : </b></td>
-	<td align="left" width="50%"><input name="organization_name" class="txtBox" value="{$ORGANIZATIONNAME}" type="text">
-	<input type="hidden" name="org_name" value="{$ORGANIZATIONNAME}">
-	</td>
-	</tr>
-	<tr>
-	<td align="right"><b>{$MOD.LBL_ORGANIZATION_ADDRESS} : </b></td>
-	<td><input name="organization_address" class="txtBox" value="{$ORGANIZATIONADDRESS}" type="text"></td>
-	</tr>
-	<tr>
-
-	<td align="right"><b>{$MOD.LBL_ORGANIZATION_CITY} : </b></td>
-	<td><input name="organization_city" class="txtBox" value="{$ORGANIZATIONCITY}" type="text"></td>
-	</tr>
-	<tr>
-	<td align="right"><b>{$MOD.LBL_ORGANIZATION_STATE} : </b></td>
-	<td><input name="organization_state" class="txtBox" value="{$ORGANIZATIONSTATE}" type="text"></td>
-	</tr>
-	<tr>
-
-	<td align="right"><b>{$MOD.LBL_ORGANIZATION_CODE}  : </b></td>
-	<td><input name="organization_code" class="txtBox" value="{$ORGANIZATIONCODE}" type="text"></td>
-	</tr>
-	<tr>
-	<td align="right"><b>{$MOD.LBL_ORGANIZATION_COUNTRY} : </b></td>
-	<td><input name="organization_country" class="txtBox" value="{$ORGANIZATIONCOUNTRY}" type="text"></td>
-	</tr>
-	<tr>
-
-	<td colspan="2" style="padding-bottom: 0px; padding-top: 0px;" width="75%"><hr> </td>
-	</tr>
-	<tr>
-	<td colspan="2" style="padding: 0px;" width="75%">
-	<table border="0" cellpadding="5" cellspacing="0" width="100%" class="small">
-	<tbody><tr>
-	<td nowrap align="right" width="15%"><b>{$MOD.LBL_ORGANIZATION_PHONE} : </b></td>
-	<td width="40%"><input name="organization_phone" class="txtBox" value="{$ORGANIZATIONPHONE}" type="text"></td>
-
-	<td nowrap align="right" width="15%"><b>{$MOD.LBL_ORGANIZATION_WEBSITE} : </b></td>
-	<td width="30%"><input name="organization_website" class="txtBox" value="{$ORGANIZATIONWEBSITE}" type="text"></td>
-	</tr>
-	<tr>
-	<td nowrap align="right"><b>{$MOD.LBL_ORGANIZATION_FAX} : </b></td>
-	<td><input name="organization_fax" class="txtBox" value="{$ORGANIZATIONFAX}" type="text"></td>
-	<td nowrap align="right"><b>{$MOD.LBL_ORGANIZATION_LOGO} : </b></td>
-
-	<td><INPUT TYPE="HIDDEN" NAME="MAX_FILE_SIZE" VALUE="800000">
-	    <INPUT TYPE="HIDDEN" NAME="PREV_FILE" VALUE="{$ORGANIZATIONLOGONAME}">
-	    <input type="file" class="txtBox" name="binFile" value="{$ORGANIZATIONLOGONAME}">[{$ORGANIZATIONLOGONAME}]
-	</td>
-	</tr>
-	</tbody></table></td>
-	</tr>
-	<tr>
-	<td colspan="2" style="padding-top: 0px; padding-bottom: 0px;"><hr></td>
-	</tr>
-	<tr>
-	<td	colspan="2" align="center">
-	<input title="{$APP.LBL_SAVE_BUTTON_LABEL}" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="classBtn" type="submit" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}" onclick="return verify_data(form,'{$MOD.LBL_ORGANIZATION_NAME}');" >
-    <input title="{$APP.LBL_CANCEL_BUTTON_LABEL}" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" class="classBtn" onclick="window.history.back()" type="button" name="button" value="{$APP.LBL_CANCEL_BUTTON_LABEL}"></td>
-	</td>
-	</tr>
-	</tbody></table>
-	</td>
-	<td bgcolor="#ebebeb" width="8"></td>
-	</tr>
-	<tr>
-	<td style="font-size: 1px; font-family: Arial,Helvetica,sans-serif;" height="8" width="7"><img src="{$IMAGE_PATH}bottom_left.jpg" align="bottom"></td>
-	<td style="font-size: 1px;" bgcolor="#ececec" height="8"></td>
-	<td style="font-size: 1px; font-family: Arial,Helvetica,sans-serif;" height="8" width="8"><img src="{$IMAGE_PATH}bottom_right.jpg" align="bottom"></td>
-	</tr>
-	</tbody></table>
-	</form>
-
+	</table>
+	</div>
+	</form>		
 </td>
-<td width="1%" style="border-right:1px dotted #CCCCCC;">&nbsp;</td>
-</tr>
+        <td valign="top"><img src="{$IMAGE_PATH}showPanelTopRight.gif"></td>
+   </tr>
+</tbody>
 </table>
-</td>
-</tr>
-</table>
-</td>
-</tr>
-</table>
-	{include file='SettingsSubMenu.tpl'}
 {literal}
 <script>
 function verify_data(form,company_name)
@@ -144,7 +144,8 @@
 	if (form.organization_name.value == "" )
 	{
 		alert(company_name +" cannot be none");
-		return false
+		form.organization_name.focus();
+		return false;
 
 	}
 	else if (form.organization_name.value.replace(/^\s+/g, '').replace(/\s+$/g, '').length==0)





More information about the vtigercrm-commits mailing list