Changeset 16801
- Timestamp:
- 2007/11/22 14:32:35 (15 years ago)
- Location:
- branches/beta
- Files:
-
- 4 deleted
- 1 edited
- 1 copied
- 5 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/beta/data/Smarty/templates/admin/basis/mail_complete.tpl
r14676 r16801 22 22 <td align="center"> 23 23 <table width="706" border="0" cellspacing="0" cellpadding="0" summary=" "> 24 25 24 <tr><td height="14"></td></tr> 26 25 <tr> … … 30 29 <td background="<!--{$smarty.const.URL_DIR}-->img/contents/main_left.jpg"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td> 31 30 <td bgcolor="#f2f1ec"> 31 <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" "> 32 <tr> 33 <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_top.gif" width="678" height="7" alt=""></td> 34 </tr> 35 <tr> 36 <td background="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_left_bg.gif"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_left.gif" width="22" height="12" alt=""></td> 37 <td bgcolor="#636469" width="638" class="fs14n"><span class="white"><!--¥³¥ó¥Æ¥ó¥Ä¥¿¥¤¥È¥ë-->¥Æ¥ó¥×¥ì¡¼¥ÈÊÔ½¸</span></td> 38 <td background="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_right_bg.gif"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="18" height="1" alt=""></td> 39 </tr> 40 <tr> 41 <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_bottom.gif" width="678" height="7" alt=""></td> 42 </tr> 43 <tr> 44 <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td> 45 </tr> 46 </table> 32 47 <!--´°Î»¥á¥Ã¥»¡¼¥¸¥Æ¡¼¥Ö¥ë¤³¤³¤«¤é--> 33 <table width="678" border="0" cellspacing="1" cellpadding="8" summary=" " height="402">48 <table width="678" border="0" cellspacing="1" cellpadding="8" summary=" "> 34 49 <tr class="fs12n" height="400"> 35 <td bgcolor="#ffffff" align="center">¥Æ¥ó¥×¥ì¡¼¥È¤ÎÅÐÏ¿¡¦ÊÔ½¸¤¬´°Î»¤·¤Þ¤·¤¿ 36 <br/><br/><a href="./ template.php">¥Æ¥ó¥×¥ì¡¼¥È°ìÍ÷¤ËÌá¤ë</a></td>50 <td bgcolor="#ffffff" align="center">¥Æ¥ó¥×¥ì¡¼¥È¤ÎÅÐÏ¿¡¦ÊÔ½¸¤¬´°Î»¤·¤Þ¤·¤¿¡£ 51 <br/><br/><a href="./mail_template.php">¥Æ¥ó¥×¥ì¡¼¥È°ìÍ÷¤ËÌá¤ë</a></td> 37 52 </tr> 38 53 </table> -
branches/beta/data/Smarty/templates/admin/basis/mail_edit.tpl
r15120 r16801 32 32 33 33 if ( ! fm["send_type"][0].checked && ! fm["send_type"][1].checked ){ 34 if ( err ) err += '\n'; 34 35 err += '¥á¡¼¥ë¤Î·Á¼°¤òÆþÎϤ·¤Æ²¼¤µ¤¤¡£'; 35 36 } 36 37 if ( ! fm["subject"].value ){ 38 if ( err ) err += '\n'; 37 39 err += 'Subject¤òÆþÎϤ·¤Æ²¼¤µ¤¤¡£'; 38 40 } … … 63 65 <form name="form1" id="form1" method="POST" action="<!--{$smarty.server.PHP_SELF|escape}-->" onsubmit="return lfnCheckSubmit();" > 64 66 <input type="hidden" name="mode" value="regist"> 65 <!--{assign var=key value="template_id"}--> 66 <input type="hidden" name="template_id" value="<!--{$arrForm[$key]|escape}-->"> 67 <input type="hidden" name="template_id" value="<!--{$arrForm.template_id|escape}-->"> 67 68 <tr valign="top"> 68 69 <td background="<!--{$smarty.const.URL_DIR}-->img/contents/navi_bg.gif" height="402"> … … 91 92 <tr> 92 93 <td background="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_left_bg.gif"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_left.gif" width="22" height="12" alt=""></td> 93 <td bgcolor="#636469" width="638" class="fs14n"><span class="white"><!--¥³¥ó¥Æ¥ó¥Ä¥¿¥¤¥È¥ë-->¥ ᡼¥ëÀßÄê</span></td>94 <td bgcolor="#636469" width="638" class="fs14n"><span class="white"><!--¥³¥ó¥Æ¥ó¥Ä¥¿¥¤¥È¥ë-->¥Æ¥ó¥×¥ì¡¼¥ÈÊÔ½¸</span></td> 94 95 <td background="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_right_bg.gif"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="18" height="1" alt=""></td> 95 96 </tr> … … 108 109 <!--{assign var=key value="send_type"}--> 109 110 <!--{if $arrForm.template_id == 1}--> 110 <input type="radio" name="send_type" value=" 0" id="send_type_0" checked="checked" /><label for="send_type_0">¥Ñ¥½¥³¥ó</label> 111 <input type="radio" name="send_type" value="<!--{$smarty.const.MAIL_TYPE_PC}-->" id="send_type_0" checked="checked" /><label for="send_type_0">¥Ñ¥½¥³¥ó</label> 111 112 <!--{elseif $arrForm.template_id == 2}--> 112 <input type="radio" name="send_type" value=" 1" id="send_type_1" checked="checked" /><label for="send_type_1">·ÈÂÓ</label> 113 <input type="radio" name="send_type" value="<!--{$smarty.const.MAIL_TYPE_MOBILE}-->" id="send_type_1" checked="checked" /><label for="send_type_1">·ÈÂÓ</label> 113 114 <!--{else}--> 114 115 <!--{html_radios_ex name="send_type" options=$arrSendType separator=" " selected=$arrForm[$key]}--> -
branches/beta/data/Smarty/templates/admin/basis/mail_preview.tpl
r17 r16801 6 6 */ 7 7 *}--> 8 <!--¡¡--> 9 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 10 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja"> 11 12 <head> 13 <meta http-equiv="content-type" content="application/xhtml+xml; charset=<!--{$smarty.const.CHAR_CODE}-->" /> 14 <meta http-equiv="content-script-type" content="text/javascript" /> 15 <meta http-equiv="content-style-type" content="text/css" /> 16 <link rel="stylesheet" href="<!--{$smarty.const.URL_DIR}-->admin/css/contents.css" type="text/css" media="all" /> 17 <script type="text/javascript" src="<!--{$smarty.const.URL_DIR}-->js/css.js"></script> 18 <script type="text/javascript" src="<!--{$smarty.const.URL_DIR}-->js/navi.js"></script> 19 <script type="text/javascript" src="<!--{$smarty.const.URL_DIR}-->js/win_op.js"></script> 20 <script type="text/javascript" src="<!--{$smarty.const.URL_DIR}-->js/site.js"></script> 21 <script type="text/javascript" src="<!--{$smarty.const.URL_DIR}-->js/admin.js"></script> 22 <!--{include file='css/contents.tpl'}--> 23 <title><!--{$tpl_subtitle}--></title> 24 <script type="text/javascript"> 25 <!-- 26 self.moveTo(20,20);self.focus(); 27 //--> 28 </script> 29 </head> 30 31 <body bgcolor="#ffffff" text="#666666" link="#007bb7" vlink="#007bb7" alink="#cc0000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="<!--{$tpl_onload}-->"> 32 <noscript> 33 <link rel="stylesheet" href="<!--{$smarty.const.URL_DIR}-->admin/css/common.css" type="text/css" /> 34 </noscript> 35 36 <div align="center"> 37 8 38 <!--¡ú¡ú¥á¥¤¥ó¥³¥ó¥Æ¥ó¥Ä¡ú¡ú--> 9 <table width="878" border="0" cellspacing="0" cellpadding="0" summary=" ">10 <form name="form1" id="form1" method="post" action="<!--{$smarty.post.PHP_SELF|escape}-->" onSubmit="return window.confirm('ÅÐÏ¿¤·¤Æ¤âµ¹¤·¤¤¤Ç¤¹¤«');">11 <input type="hidden" name="mode" value="confirm">12 <input type="hidden" name="page_id" value="">13 <tr valign="top">14 <td background="<!--{$smarty.const.URL_DIR}-->img/contents/navi_bg.gif" height="402">15 <!--¢§SUB NAVI-->16 <!--{include file=$tpl_subnavi}-->17 <!--¢¥SUB NAVI-->18 </td>19 <td class="mainbg">20 <!--¢§ÅÐÏ¿¥Æ¡¼¥Ö¥ë¤³¤³¤«¤é-->21 39 <table width="737" border="0" cellspacing="0" cellpadding="0" summary=" "> 22 40 <!--¥á¥¤¥ó¥¨¥ê¥¢--> … … 31 49 <td background="<!--{$smarty.const.URL_DIR}-->img/contents/main_left.jpg"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td> 32 50 <td bgcolor="#cccccc"> 33 34 <!--{if count($arrPageData) > 0 }--> 35 <!--{foreach name=page key=key item=item from=$arrPageData}--> 36 <input type="hidden" name="disp_flg<!--{$item.page_id}-->" value="<!--{$disp_flg[$item.page_id]}-->"> 37 <!-- <!--{$item.page_name}--> ¤³¤³¤«¤é --> 38 <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" "> 39 <tr> 40 <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_top.gif" width="678" height="7" alt=""></td> 41 </tr> 42 <tr> 43 <td background="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_left_bg.gif"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_left.gif" width="22" height="12" alt=""></td> 44 <td bgcolor="#636469" width="638" class="fs14n"><span class="white" style="float:left"><!--¥³¥ó¥Æ¥ó¥Ä¥¿¥¤¥È¥ë--><!--{$item.page_name}--> <!--{$item.url}--></span><a href="#" id="switch<!--{$item.page_id}-->" style="float:right " onClick="fnDispChange('disp<!--{$item.page_id}-->', 'switch<!--{$item.page_id}-->', 'disp_flg<!--{$item.page_id}-->');"><!--{if $disp_flg[$item.page_id] == ""}--><FONT Color="#FFFF99"> >> Èóɽ¼¨</FONT><!--{else}--><FONT Color="#FFFF99"> << ɽ¼¨</FONT><!--{/if}--></a></td> 45 <td background="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_right_bg.gif"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="18" height="1" alt=""></td> 46 </tr> 47 <tr> 48 <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_bottom.gif" width="678" height="7" alt=""></td> 49 </tr> 50 <tr> 51 <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td> 52 </tr> 53 </table> 54 55 <div id="disp<!--{$item.page_id}-->" style="display:<!--{$disp_flg[$item.page_id]}-->"> 56 <table width="678" border="0" cellspacing="1" cellpadding="8" summary=" "> 57 <tr> 58 <td bgcolor="#f2f1ec" width="160" class="fs12n">¥á¥¿¥¿¥°:Author</td> 59 <td bgcolor="#ffffff" width="557" class="fs10n"> 60 <span class="red12"><!--{$arrErr[$item.page_id].author}--></span> 61 <input type="text" name="meta[<!--{$item.page_id}-->][author]" value="<!--{$item.author|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" size="60" class="box60" style='<!--{if $arrErr[$item.page_id].author != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}--><!--{/if}-->' /><span class="red"> ¡Ê¾å¸Â<!--{$smarty.const.STEXT_LEN}-->ʸ»ú¡Ë</span></td> 62 </tr> 63 <tr> 64 <td bgcolor="#f2f1ec" width="160" class="fs12n">¥á¥¿¥¿¥°:Description</td> 65 <td bgcolor="#ffffff" width="557" class="fs10n"> 66 <span class="red12"><!--{$arrErr[$item.page_id].description}--></span> 67 <input type="text" name="meta[<!--{$item.page_id}-->][description]" value="<!--{$item.description|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" size="60" class="box60" style='<!--{if $arrErr[$item.page_id].description != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}--><!--{/if}-->' /><span class="red"> ¡Ê¾å¸Â<!--{$smarty.const.STEXT_LEN}-->ʸ»ú¡Ë</span></td> 68 </tr> 69 <tr> 70 <td bgcolor="#f2f1ec" width="160" class="fs12n">¥á¥¿¥¿¥°:Keywords</td> 71 <td bgcolor="#ffffff" width="557" class="fs10n"> 72 <span class="red12"><!--{$arrErr[$item.page_id].keyword}--></span> 73 <input type="text" name="meta[<!--{$item.page_id}-->][keyword]" value="<!--{$item.keyword|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" size="60" class="box60" style='<!--{if $arrErr[$item.page_id].keyword != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}--><!--{/if}-->' /><span class="red"> ¡Ê¾å¸Â<!--{$smarty.const.STEXT_LEN}-->ʸ»ú¡Ë</span></td> 74 </tr> 75 </table> 76 77 <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" "> 78 <tr> 79 <td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td> 80 <td><img src="<!--{$smarty.const.URL_DIR}-->img/contents/tbl_top.gif" width="676" height="7" alt=""></td> 81 <td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td> 82 </tr> 83 <tr> 84 <td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td> 85 <td bgcolor="#e9e7de" align="center"> 86 <table border="0" cellspacing="0" cellpadding="0" summary=" "> 87 <tr> 88 <td><input type="image" onMouseover="chgImgImageSubmit('<!--{$smarty.const.URL_DIR}-->img/contents/btn_regist_on.jpg',this)" onMouseout="chgImgImageSubmit('<!--{$smarty.const.URL_DIR}-->img/contents/btn_regist.jpg',this)" src="<!--{$smarty.const.URL_DIR}-->img/contents/btn_regist.jpg" width="123" height="24" alt="¤³¤ÎÆâÍÆ¤ÇÅÐÏ¿¤¹¤ë" border="0" name="subm" onclick="document.form1.page_id.value = <!--{$item.page_id}-->;"></td> 89 </tr> 90 </table> 91 </td> 92 <td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td> 93 </tr> 94 <tr> 95 <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/tbl_bottom.gif" width="678" height="8" alt=""></td> 96 </tr> 97 </table> 98 99 <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" "> 100 <tr><td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td></tr> 101 </table> 102 </div> 103 <!-- <!--{$item.page_name}--> ¤³¤³¤Þ¤Ç --> 104 <!--{/foreach}--> 105 <!--{else}--> 106 <table width="678" border="0" cellspacing="1" cellpadding="8" summary=" "> 107 <tr> 108 <td bgcolor="#ffffff" width="" height="300" class="fs12n" align="center"> 109 ɽ¼¨¤¹¤ë¥Ç¡¼¥¿¤¬¤¢¤ê¤Þ¤»¤ó 110 </td> 111 </tr> 112 </table> 113 <!--{/if}--> 51 <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" "> 52 <tr> 53 <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_top.gif" width="678" height="7" alt=""></td> 54 </tr> 55 <tr> 56 <td background="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_left_bg.gif"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_left.gif" width="22" height="12" alt=""></td> 57 <td bgcolor="#636469" width="638" class="fs14n"><span style="color:#ffffff;"><!--¥³¥ó¥Æ¥ó¥Ä¥¿¥¤¥È¥ë-->¥á¡¼¥ë¥Æ¥ó¥×¥ì¡¼¥È¥×¥ì¥Ó¥å¡¼</span></td> 58 <td background="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_right_bg.gif"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="18" height="1" alt=""></td> 59 </tr> 60 <tr> 61 <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_bottom.gif" width="678" height="7" alt=""></td> 62 </tr> 63 <tr> 64 <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td> 65 </tr> 66 </table> 114 67 68 <table width="678" border="0" cellspacing="1" cellpadding="8" summary=" " class="fs12n"> 69 <tr> 70 <td bgcolor="#f2f1ec">¥á¡¼¥ë·Á¼°<span class="red"> *</span></td> 71 <td bgcolor="#ffffff"> 72 <!--{if $list_data.send_type eq 0}-->¥Ñ¥½¥³¥ó<!--{else}-->·ÈÂÓ<!--{/if}--> 73 </td> 74 </tr> 75 <tr> 76 <td bgcolor="#f2f1ec" width="160">¥Æ¥ó¥×¥ì¡¼¥È<span class="red"> *</span></td> 77 <td bgcolor="#ffffff" width="557"> 78 <!--{$list_data.template_name|escape}--> 79 </td> 80 </tr> 81 <tr> 82 <td bgcolor="#f2f1ec" width="160">¥á¡¼¥ë¥¿¥¤¥È¥ë<span class="red"> *</span></td> 83 <td bgcolor="#ffffff" width="557"> 84 <!--{$list_data.subject|escape}--> 85 </td> 86 </tr> 87 <tr> 88 <td bgcolor="#f2f1ec" width="160">¥á¡¼¥ë¤ÎÆâÍÆ</td> 89 <td bgcolor="#ffffff" width="557"> 90 <textarea name="body" maxlength="<!--{$arrForm[$key].length}-->" style="color:#000000;background-color:#ffffff;border-width:0px;" cols="55" rows="12" class="area75" disabled="true"><!--{$list_data.body|escape}--></textarea></td> 91 </tr> 92 </table> 93 94 <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" "> 95 <tr> 96 <td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td> 97 <td><img src="<!--{$smarty.const.URL_DIR}-->img/contents/tbl_top.gif" width="676" height="7" alt=""></td> 98 <td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td> 99 </tr> 100 <tr> 101 <td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td> 102 <td bgcolor="#e9e7de" align="center"> 103 </td> 104 <td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td> 105 </tr> 106 <tr> 107 <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/tbl_bottom.gif" width="678" height="8" alt=""></td> 108 </tr> 109 </table> 115 110 </td> 116 111 <td background="<!--{$smarty.const.URL_DIR}-->img/contents/main_right.jpg"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td> … … 125 120 <!--¥á¥¤¥ó¥¨¥ê¥¢--> 126 121 </table> 127 <!--¢¥ÅÐÏ¿¥Æ¡¼¥Ö¥ë¤³¤³¤Þ¤Ç-->128 </td>129 </tr>130 </form>131 </table>132 122 <!--¡ú¡ú¥á¥¤¥ó¥³¥ó¥Æ¥ó¥Ä¡ú¡ú--> 123 </div> 124 125 </body> 126 </html> 127 -
branches/beta/data/Smarty/templates/admin/basis/mail_template.tpl
r15120 r16801 8 8 <!--¡ú¡ú¥á¥¤¥ó¥³¥ó¥Æ¥ó¥Ä¡ú¡ú--> 9 9 <table width="878" border="0" cellspacing="0" cellpadding="0" summary=" "> 10 <form name="form1" id="form1" method="post" action=""> 10 <form name="form1" id="form1" method="post" action="/admin/basis/mail_edit.php"> 11 <input type="hidden" name="mode" value=""> 12 <input type="hidden" name="template_id" value=""> 11 13 <tr valign="top"> 12 14 <td background="<!--{$smarty.const.URL_DIR}-->img/contents/navi_bg.gif" height="402"> … … 35 37 <tr> 36 38 <td background="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_left_bg.gif"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_left.gif" width="22" height="12" alt=""></td> 37 <td bgcolor="#636469" width="638" class="fs14n"><span class="white"><!--¥³¥ó¥Æ¥ó¥Ä¥¿¥¤¥È¥ë-->¥ ᡼¥ë¥Æ¥ó¥×¥ì¡¼¥È°ìÍ÷</span></td>39 <td bgcolor="#636469" width="638" class="fs14n"><span class="white"><!--¥³¥ó¥Æ¥ó¥Ä¥¿¥¤¥È¥ë-->¥Æ¥ó¥×¥ì¡¼¥È°ìÍ÷</span></td> 38 40 <td background="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_right_bg.gif"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="18" height="1" alt=""></td> 39 41 </tr> … … 60 62 <td width="333"><!--{$list_data[data].template_name|escape}--></td> 61 63 <!--{assign var=type value=$list_data[data].mail_method|escape}--> 62 <td width="70" align="center"><!--{if $list_data[data].send_type eq 0}-->¥Ñ¥½¥³¥ó<!--{else}-->·ÈÂÓ<!--{/if}--></td>63 <td width="40" align="center"><a href="./mail .php?mode=edit&template_id=<!--{$list_data[data].template_id}-->">ÊÔ½¸</a></td>64 <td width="70" align="center"><!--{if $list_data[data].send_type eq $smarty.const.MAIL_TYPE_PC}-->¥Ñ¥½¥³¥ó<!--{elseif $list_data[data].send_type eq $smarty.const.MAIL_TYPE_MOBILE}-->·ÈÂÓ<!--{/if}--></td> 65 <td width="40" align="center"><a href="./mail_edit.php" onClick="fnFormModeSubmit('form1','edit','template_id','<!--{$list_data[data].template_id}-->'); return false;">ÊÔ½¸</a></td> 64 66 <td width="40" align="center"> 65 67 <!--{if $list_data[data].template_id > 2}--> … … 67 69 <!--{else}-->(¸ÇÄê)<!--{/if}--> 68 70 </td> 69 <td width="70" align="center">< !--{if $list_data[data].send_type eq 0}--><a href="" onclick="win03('./preview.php?mode=preview&id=<!--{$list_data[data].template_id}-->','preview','750','550'); return false;" target="_blank"><!--{else}--><a href="" onclick="win03('./preview.php?id=<!--{$list_data[data].template_id}-->','preview','650','700'); return false;" target="_blank"><!--{/if}-->¥×¥ì¥Ó¥å¡¼</a></td>71 <td width="70" align="center"><a href="" onclick="win03('./mail_preview.php?mode=preview&id=<!--{$list_data[data].template_id}-->','preview','750','550'); return false;" target="_blank">¥×¥ì¥Ó¥å¡¼</a></td> 70 72 </tr> 71 73 <!--{/section}--> … … 84 86 <tr> 85 87 <td> 86 <input type="button" name="subm" on click="location.href='./template_input.php'" value="¿·µ¬ºîÀ®" />¡¡88 <input type="button" name="subm" onClick="fnFormModeSubmit('form1','edit','',''); return false;"" value="¿·µ¬ºîÀ®" />¡¡ 87 89 <!-- £È£Ô£Í£ÌºîÀ®¥¦¥£¥¶¡¼¥É¤ÏÊÝα ¡Ê¼¡´ü³«È¯¡Ë 88 <input type="button" name="subm" onclick="location.href='./htmlmail .php'" value="HTML¥Æ¥ó¥×¥ì¡¼¥ÈºîÀ®¥¦¥£¥¶¡¼¥É" />90 <input type="button" name="subm" onclick="location.href='./htmlmail_edit.php'" value="HTML¥Æ¥ó¥×¥ì¡¼¥ÈºîÀ®¥¦¥£¥¶¡¼¥É" /> 89 91 --> 90 92 </td> -
branches/beta/html/admin/basis/mail_edit.php
r14676 r16801 11 11 var $tpl_mode; 12 12 function LC_Page() { 13 $this->tpl_mainpage = 'basis/mail.tpl';14 $this->tpl_subnavi = 'basis/subnavi.tpl';15 $this->tpl_mainno = 'basis';16 $this->tpl_subno = 'mail';17 $this->tpl_subtitle = '¥á¡¼¥ëÀßÄê';13 $this->tpl_mainpage = "basis/mail_edit.tpl"; 14 $this->tpl_subnavi = "basis/subnavi.tpl"; 15 $this->tpl_mainno = "basis"; 16 $this->tpl_subno = "mail"; 17 $this->tpl_subtitle = "¥á¡¼¥ëÀßÄê"; 18 18 } 19 19 } 20 20 21 $conn = new SC_DBConn();22 21 $objQuery = new SC_Query(); 23 22 $objPage = new LC_Page(); … … 29 28 30 29 $objPage->arrMailTEMPLATE = $arrMAILTEMPLATE; 30 $objPage->arrSendType = $arrMailType; 31 31 32 $objPage->arrSendType = array("¥Ñ¥½¥³¥ó","·ÈÂÓ"); 33 34 if ( $_GET['mode'] == 'edit' && sfCheckNumLength($_GET['template_id']) === true ){ 35 if ( sfCheckNumLength( $_GET['template_id']) ){ 36 $sql = "SELECT * FROM dtb_mailtemplate WHERE template_id = ?"; 37 $result = $conn->getAll($sql, array($_GET['template_id']) ); 38 if ( $result ){ 32 // ÊÔ½¸/¿·µ¬ 33 if ($_POST['mode'] == "edit") { 34 if (sfCheckNumLength($_POST['template_id']) === true) { 35 $result = $objQuery->select("*", "dtb_mailtemplate", "template_id = ?", array($_POST['template_id'])); 36 if ($result) { 39 37 $objPage->arrForm = $result[0]; 40 38 } else { 41 $objPage->arrForm['template_id'] = $_ GET['template_id'];39 $objPage->arrForm['template_id'] = $_POST['template_id']; 42 40 } 41 } else { 42 $objPage->arrForm['template_id'] = 0; 43 43 } 44 } elseif ( $_POST['mode'] == 'regist' && sfCheckNumLength( $_POST['template_id']) ){ 44 45 // ÅÐÏ¿ 46 } elseif ($_POST['mode'] == "regist" && sfCheckNumLength($_POST['template_id']) === true) { 45 47 // POST¥Ç¡¼¥¿¤Î°ú¤·Ñ¤® 46 48 $objPage->arrForm = lfConvertParam($_POST); 47 49 $objPage->arrErr = fnErrorCheck($objPage->arrForm); 48 if ( $objPage->arrErr ){50 if ($objPage->arrErr) { 49 51 // ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸ 50 52 $objPage->tpl_msg = "¥¨¥é¡¼¤¬È¯À¸¤·¤Þ¤·¤¿"; 51 53 } else { 52 54 // Àµ¾ï 53 lfRegist($ conn, $objPage->arrForm);54 // ´°Î»¥ á¥Ã¥»¡¼¥¸55 $objPage->tpl_ onload = "window.alert('¥á¡¼¥ëÀßÄ꤬´°Î»¤·¤Þ¤·¤¿¡£');";55 lfRegist($objQuery, $objPage->arrForm, $_POST['template_id']); 56 // ´°Î»¥Ú¡¼¥¸ 57 $objPage->tpl_mainpage = "basis/mail_complete.tpl"; 56 58 } 57 59 } … … 62 64 //----------------------------------------------------------------------------------------------------------------------------------- 63 65 64 function lfRegist( $conn, $data ){ 66 function lfRegist($objQuery, $arrVal, $id) { 67 $sqlval['template_name'] = $arrVal['template_name']; 68 $sqlval['subject'] = $arrVal['subject']; 69 $sqlval['creator_id'] = $_SESSION['member_id']; 70 $sqlval['body'] = $arrVal['body']; 71 $sqlval['send_type'] = $arrVal['send_type']; 72 $sqlval['update_date'] = "now()"; 65 73 66 $data['creator_id'] = $_SESSION['member_id']; 67 68 $sql = "SELECT * FROM dtb_mailtemplate WHERE template_id = ? AND del_flg = 0"; 69 $result = $conn->getAll($sql, array($_POST['template_id']) ); 70 if ( $result ){ 71 $sql_where = "template_id = ". addslashes($_POST['template_id']); 72 $conn->query("UPDATE dtb_mailtemplate SET send_type = ?,template_id = ?, template_name = ?,subject = ?,body = ?,creator_id = ?, update_date = now() WHERE ".$sql_where, $data); 73 }else{ 74 $conn->query("INSERT INTO dtb_mailtemplate (send_type,template_id,template_name,subject,body,creator_id,update_date,create_date) values ( ?,?,?,?,?,?,now(),now() )", $data); 74 $result = $objQuery->count("dtb_mailtemplate", "template_id=?", array($id)); 75 if ($result > 0) { 76 $objQuery->update("dtb_mailtemplate", $sqlval, "template_id=?", array($id)); 77 } else { 78 $sqlval['create_date'] = "now()"; 79 $objQuery->insert("dtb_mailtemplate", $sqlval); 75 80 } 76 77 81 } 78 82 79 83 function lfConvertParam($array) { 80 81 84 $new_array["send_type"] = $array["send_type"]; 82 85 $new_array["template_id"] = $array["template_id"]; … … 90 93 /* ÆþÎÏ¥¨¥é¡¼¤Î¥Á¥§¥Ã¥¯ */ 91 94 function fnErrorCheck($array) { 92 93 95 $objErr = new SC_CheckError($array); 94 96 $objErr->doFunc(array("¥á¡¼¥ë¤Î¼ïÎà",'send_type'), array("EXIST_CHECK")); … … 97 99 $objErr->doFunc(array("¥á¡¼¥ë¥¿¥¤¥È¥ë",'subject',MTEXT_LEN,"BIG"), array("EXIST_CHECK", "MAX_LENGTH_CHECK")); 98 100 $objErr->doFunc(array("¥á¡¼¥ë¤ÎÆâÍÆ",'body',LTEXT_LEN,"BIG"), array("MAX_LENGTH_CHECK","EXIST_CHECK")); 99 101 100 102 return $objErr->arrErr; 101 103 } -
branches/beta/html/admin/basis/mail_preview.php
r14676 r16801 12 12 13 13 function LC_Page() { 14 $this->tpl_mainpage = 'basis/preview.tpl';14 $this->tpl_mainpage = "basis/mail_preview.tpl"; 15 15 } 16 16 } -
branches/beta/html/admin/basis/mail_template.php
r14676 r16801 15 15 16 16 function LC_Page() { 17 $this->tpl_mainpage = 'basis/template.tpl';18 $this->tpl_mainno = 'basis';19 $this->tpl_subnavi = 'basis/subnavi.tpl';20 $this->tpl_subno = 'mail';21 $this->tpl_subtitle = '¥Æ¥ó¥×¥ì¡¼¥ÈÀßÄê';17 $this->tpl_mainpage = "basis/mail_template.tpl"; 18 $this->tpl_mainno = "basis"; 19 $this->tpl_subnavi = "basis/subnavi.tpl"; 20 $this->tpl_subno = "mail"; 21 $this->tpl_subtitle = "¥á¡¼¥ëÀßÄê"; 22 22 } 23 23 } … … 31 31 sfIsSuccess($objSess); 32 32 33 if ( $_GET['mode'] == "delete" && sfCheckNumLength($_GET['id'])===true ){ 34 33 if ($_GET['mode'] == "delete" && sfCheckNumLength($_GET['id'])===true) { 35 34 // ÅÐÏ¿ºï½ü 36 35 $sql = "UPDATE dtb_mailtemplate SET del_flg = 1 WHERE template_id = ?"; … … 43 42 $linemax = count($list_data); 44 43 45 for ($i = 0;$i < count($list_data);$i++){44 for ($i = 0; $i < count($list_data); $i++) { 46 45 $split_data = explode(".",$list_data[$i]["create_date"]); 47 46 $list_data[$i]["create_date"] = $split_data[0];
Note: See TracChangeset
for help on using the changeset viewer.