[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
1 <?php 2 3 /********************************************************************************* 4 ** The contents of this file are subject to the vtiger CRM Public License Version 1.0 5 * ("License"); You may not use this file except in compliance with the License 6 * The Original Code is: vtiger CRM Open Source 7 * The Initial Developer of the Original Code is vtiger. 8 * Portions created by vtiger are Copyright (C) vtiger. 9 * All Rights Reserved. 10 * 11 ********************************************************************************/ 12 13 require_once ('include/database/PearDatabase.php'); 14 require_once ('include/utils/utils.php'); 15 16 global $theme; 17 $theme_path="themes/".$theme."/"; 18 19 ?> 20 21 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 22 <html lang="en"> 23 <head> 24 <title><?php echo $mod_strings['LBL_EMAIL_TEMPLATES_LIST']; ?></title> 25 <link type="text/css" rel="stylesheet" href="<?php echo $theme_path ?>/style.css"/> 26 </head> 27 <body> 28 <form action="index.php"> 29 <div class="lvtHeaderText"><?php echo $mod_strings['LBL_EMAIL_TEMPLATES']; ?></div> 30 <hr noshade="noshade" size="1"> 31 32 <input type="hidden" name="module" value="Users"> 33 <table style="background-color: rgb(204, 204, 204);" class="small" border="0" cellpadding="5" cellspacing="1" width="100%"> 34 <tr> 35 <th width="35%" class="lvtCol"><b><?php echo $mod_strings['LBL_TEMPLATE_NAME']; ?></b></th> 36 <th width="65%" class="lvtCol"><b><?php echo $mod_strings['LBL_DESCRIPTION']; ?></b></td> 37 </tr> 38 <?php 39 $sql = "select * from vtiger_emailtemplates order by templateid desc"; 40 $result = $adb->query($sql); 41 $temprow = $adb->fetch_array($result); 42 $cnt=1; 43 44 require_once ('include/utils/UserInfoUtil.php'); 45 do 46 { 47 printf("<tr class='lvtColData' onmouseover=\"this.className='lvtColDataHover'\" onmouseout=\"this.className='lvtColData'\" bgcolor='white'> <td height='25'>"); 48 $templatename = $temprow["templatename"]; 49 echo "<a href='javascript:submittemplate(".$temprow['templateid'].");'>".$temprow["templatename"]."</a></td>"; 50 printf("<td height='25'>%s</td>",$temprow["description"]); 51 $cnt++; 52 }while($temprow = $adb->fetch_array($result)); 53 ?> 54 </table> 55 </body> 56 <script> 57 function submittemplate(templateid) 58 { 59 window.document.location.href = 'index.php?module=Users&action=UsersAjax&file=TemplateMerge&templateid='+templateid; 60 } 61 </script> 62 </html>
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 |