[Vtigercrm-commits] [vtiger-commits] r6498 - /vtigercrm/trunk/modules/Users/lookupemailtemplates.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Fri May 26 16:47:37 EDT 2006
Author: saraj
Date: Fri May 26 14:47:34 2006
New Revision: 6498
Log:
update lookup email templates file - ahmed
Modified:
vtigercrm/trunk/modules/Users/lookupemailtemplates.php
Modified: vtigercrm/trunk/modules/Users/lookupemailtemplates.php
==============================================================================
--- vtigercrm/trunk/modules/Users/lookupemailtemplates.php (original)
+++ vtigercrm/trunk/modules/Users/lookupemailtemplates.php Fri May 26 14:47:34 2006
@@ -26,13 +26,14 @@
</head>
<body>
<form action="index.php">
- <div class="moduleTitle hline"><?php echo $mod_strings['LBL_EMAIL_TEMPLATES']; ?></div>
- <br>
+ <div class="lvtHeaderText"><?php echo $mod_strings['LBL_EMAIL_TEMPLATES']; ?></div>
+ <hr noshade="noshade" size="1">
+
<input type="hidden" name="module" value="Users">
- <table width="30%" border="0" cellspacing="0" cellpadding="0" class="FormBorder">
+ <table style="background-color: rgb(204, 204, 204);" class="small" border="0" cellpadding="5" cellspacing="1" width="100%">
<tr>
- <td class="moduleListTitle" height="25"><b><?php echo $mod_strings['LBL_TEMPLATE_NAME']; ?></b></td>
- <td class="moduleListTitle"><b><?php echo $mod_strings['LBL_DESCRIPTION']; ?></b></td>
+ <th width="35%" class="lvtCol"><b><?php echo $mod_strings['LBL_TEMPLATE_NAME']; ?></b></th>
+ <th width="65%" class="lvtCol"><b><?php echo $mod_strings['LBL_DESCRIPTION']; ?></b></td>
</tr>
<?php
$sql = "select * from emailtemplates order by templateid desc";
@@ -43,17 +44,20 @@
require_once('include/utils/UserInfoUtil.php');
do
{
- //$name=$temprow["name"];
- if ($cnt%2==0)
- printf("<tr class='evenListRow'> <td height='25'>");
- else
- printf("<tr class='oddListRow'> <td height='25'>");
+ printf("<tr class='lvtColData' onmouseover=\"this.className='lvtColDataHover'\" onmouseout=\"this.className='lvtColData'\" bgcolor='white'> <td height='25'>");
$templatename = $temprow["templatename"];
- printf("<a href='index.php?module=Users&action=populatetemplate&templatename=".$temprow['templatename']."&templateid=".$temprow['templateid']."&entityid=".$_REQUEST["entityid"]."&entity=".$_REQUEST['entity']."'>%s</a></td>",$temprow["templatename"]);
+ echo "<a href='javascript:;' onclick=\"submittemplate(".$temprow['templateid'].");\">".$temprow["templatename"]."</a></td>";
printf("<td height='25'>%s</td>",$temprow["description"]);
$cnt++;
}while($temprow = $adb->fetch_array($result));
?>
</table>
</body>
+<script>
+function submittemplate(templateid)
+{
+ window.opener.location.href = window.opener.location.href +'&templateid='+templateid;
+ self.close();
+}
+</script>
</html>
More information about the vtigercrm-commits
mailing list