| 1 | <script type="text/javascript">
|
|---|
| 2 | <!--
|
|---|
| 3 | // ¥ê¥¹¥È¥Ü¥Ã¥¯¥¹¤Î¥µ¥¤¥ºÊѹ¹
|
|---|
| 4 | function ChangeSize(button, TextArea, Max, Min, row_tmp){
|
|---|
| 5 | if(TextArea.rows <= Min){
|
|---|
| 6 | TextArea.rows=Max; button.value="¾®¤µ¤¯¤¹¤ë"; row_tmp.value=Max;
|
|---|
| 7 | }else{
|
|---|
| 8 | TextArea.rows =Min; button.value="Â礤¯¤¹¤ë"; row_tmp.value=Min;
|
|---|
| 9 | }
|
|---|
| 10 | }
|
|---|
| 11 |
|
|---|
| 12 | // SQL³Îǧ²èÌ̵¯Æ°
|
|---|
| 13 | function doPreview(){
|
|---|
| 14 | document.form1.mode.value="preview"
|
|---|
| 15 | document.form1.target = "_blank";
|
|---|
| 16 | document.form1.submit();
|
|---|
| 17 | }
|
|---|
| 18 |
|
|---|
| 19 | // form¤Î¥¿¡¼¥²¥Ã¥È¤ò¼«Ê¬¤ËÌ᤹
|
|---|
| 20 | function fnTargetSelf(){
|
|---|
| 21 | document.form1.target = "_self";
|
|---|
| 22 | }
|
|---|
| 23 |
|
|---|
| 24 | //-->
|
|---|
| 25 | </script>
|
|---|
| 26 |
|
|---|
| 27 | <!--¡ú¡ú¥á¥¤¥ó¥³¥ó¥Æ¥ó¥Ä¡ú¡ú-->
|
|---|
| 28 | <table width="878" border="0" cellspacing="0" cellpadding="0" summary=" ">
|
|---|
| 29 | <form name="form1" id="form1" method="post" action="<!--{$smarty.server.PHP_SELF}-->">
|
|---|
| 30 | <input type="hidden" name="mode" value="confirm">
|
|---|
| 31 | <input type="hidden" name="sql_id" value="<!--{$sql_id}-->">
|
|---|
| 32 | <input type="hidden" name="csv_output_id" value="">
|
|---|
| 33 | <input type="hidden" name="selectTable" value="">
|
|---|
| 34 | <tr valign="top">
|
|---|
| 35 | <td background="/img/contents/navi_bg.gif" height="402">
|
|---|
| 36 | <!--¢§SUB NAVI-->
|
|---|
| 37 | <!--{include file=$tpl_subnavi}-->
|
|---|
| 38 | <!--¢¥SUB NAVI-->
|
|---|
| 39 | </td>
|
|---|
| 40 | <td class="mainbg">
|
|---|
| 41 | <!--¢§ÅÐÏ¿¥Æ¡¼¥Ö¥ë¤³¤³¤«¤é-->
|
|---|
| 42 | <table width="737" border="0" cellspacing="0" cellpadding="0" summary=" ">
|
|---|
| 43 | <!--¥á¥¤¥ó¥¨¥ê¥¢-->
|
|---|
| 44 | <tr>
|
|---|
| 45 | <td align="center">
|
|---|
| 46 | <table width="706" border="0" cellspacing="0" cellpadding="0" summary=" ">
|
|---|
| 47 | <tr><td height="14"></td></tr>
|
|---|
| 48 | <tr>
|
|---|
| 49 | <td colspan="3"><img src="/img/contents/main_top.jpg" width="706" height="14" alt=""></td>
|
|---|
| 50 | </tr>
|
|---|
| 51 | <tr>
|
|---|
| 52 | <td background="/img/contents/main_left.jpg"><img src="/img/common/_.gif" width="14" height="1" alt=""></td>
|
|---|
| 53 | <td bgcolor="#cccccc">
|
|---|
| 54 |
|
|---|
| 55 | <!-- SQL°ìÍ÷ ¤³¤³¤«¤é -->
|
|---|
| 56 | <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
|
|---|
| 57 | <tr>
|
|---|
| 58 | <td colspan="3"><img src="/img/contents/contents_title_top.gif" width="678" height="7" alt=""></td>
|
|---|
| 59 | </tr>
|
|---|
| 60 | <tr>
|
|---|
| 61 | <td background="/img/contents/contents_title_left_bg.gif"><img src="/img/contents/contents_title_left.gif" width="22" height="12" alt=""></td>
|
|---|
| 62 | <td bgcolor="#636469" width="638" class="fs14n"><span class="white"><!--¥³¥ó¥Æ¥ó¥Ä¥¿¥¤¥È¥ë-->SQL°ìÍ÷</span></td>
|
|---|
| 63 | <td background="/img/contents/contents_title_right_bg.gif"><img src="/img/common/_.gif" width="18" height="1" alt=""></td>
|
|---|
| 64 | </tr>
|
|---|
| 65 | <tr>
|
|---|
| 66 | <td colspan="3"><img src="/img/contents/contents_title_bottom.gif" width="678" height="7" alt=""></td>
|
|---|
| 67 | </tr>
|
|---|
| 68 | <tr>
|
|---|
| 69 | <td colspan="3"><img src="/img/contents/main_bar.jpg" width="678" height="10" alt=""></td>
|
|---|
| 70 | </tr>
|
|---|
| 71 | </table>
|
|---|
| 72 |
|
|---|
| 73 | <table width="678" border="0" cellspacing="1" cellpadding="5" summary=" ">
|
|---|
| 74 | <tr class="fs12n">
|
|---|
| 75 | <td bgcolor="#f2f1ec" align="center" colspan=3 ><strong>SQL°ìÍ÷</strong></td>
|
|---|
| 76 | </tr>
|
|---|
| 77 |
|
|---|
| 78 | <!--{ foreach key=key item=item from=$arrSqlList }-->
|
|---|
| 79 | <tr class="fs12n" height=20>
|
|---|
| 80 | <td align="center" width=600 bgcolor="<!--{if $item.sql_id == $sql_id}--><!--{$smarty.const.SELECT_RGB}--><!--{else}-->#ffffff<!--{/if}-->">
|
|---|
| 81 | <a href="<!--{$smarty.server.PHP_SELF}-->?sql_id=<!--{$item.sql_id}-->" ><!--{$item.csv_name}--></a>
|
|---|
| 82 | </td>
|
|---|
| 83 | <td align="center" width=78 bgcolor="<!--{if $item.sql_id == $sql_id}--><!--{$smarty.const.SELECT_RGB}--><!--{else}-->#ffffff<!--{/if}-->">
|
|---|
| 84 | <input type='button' value='CSV½ÐÎÏ' name='csv' onclick="fnTargetSelf(); fnFormModeSubmit('form1','csv_output','csv_output_id',<!--{$item.sql_id}-->);" />
|
|---|
| 85 | </td>
|
|---|
| 86 | <td align="center" width=78 bgcolor="<!--{if $item.sql_id == $sql_id}--><!--{$smarty.const.SELECT_RGB}--><!--{else}-->#ffffff<!--{/if}-->">
|
|---|
| 87 | <input type='button' value='ºï½ü' name='del' onclick="fnTargetSelf(); fnFormModeSubmit('form1','delete','sql_id',<!--{$item.sql_id}-->);" />
|
|---|
| 88 | </td>
|
|---|
| 89 | </tr>
|
|---|
| 90 | <!--{ /foreach }-->
|
|---|
| 91 | </table>
|
|---|
| 92 |
|
|---|
| 93 | <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
|
|---|
| 94 | <tr>
|
|---|
| 95 | <td bgcolor="#cccccc"><img src="/img/common/_.gif" width="1" height="5" alt=""></td>
|
|---|
| 96 | <td><img src="/img/contents/tbl_top.gif" width="676" height="7" alt=""></td>
|
|---|
| 97 | <td bgcolor="#cccccc"><img src="/img/common/_.gif" width="1" height="5" alt=""></td>
|
|---|
| 98 | </tr>
|
|---|
| 99 | <tr>
|
|---|
| 100 | <td bgcolor="#cccccc"><img src="/img/common/_.gif" width="1" height="10" alt=""></td>
|
|---|
| 101 | <td bgcolor="#e9e7de" align="center">
|
|---|
| 102 | <table border="0" cellspacing="0" cellpadding="0" summary=" ">
|
|---|
| 103 | <tr>
|
|---|
| 104 | <td><input type='button' value='¿·µ¬SQLºîÀ®' name='subm' onclick="fnTargetSelf(); fnFormModeSubmit('form1','new_page','','');" /></td>
|
|---|
| 105 | </tr>
|
|---|
| 106 | </table>
|
|---|
| 107 | </td>
|
|---|
| 108 | <td bgcolor="#cccccc"><img src="/img/common/_.gif" width="1" height="10" alt=""></td>
|
|---|
| 109 | </tr>
|
|---|
| 110 | <tr>
|
|---|
| 111 | <td colspan="3"><img src="/img/contents/tbl_bottom.gif" width="678" height="8" alt=""></td>
|
|---|
| 112 | </tr>
|
|---|
| 113 | </table>
|
|---|
| 114 | <!-- SQL°ìÍ÷ ¤³¤³¤Þ¤Ç -->
|
|---|
| 115 |
|
|---|
| 116 | <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
|
|---|
| 117 | <tr><td colspan="3"><img src="/img/contents/main_bar.jpg" width="678" height="10" alt=""></td></tr>
|
|---|
| 118 | </table>
|
|---|
| 119 |
|
|---|
| 120 | <!-- SQLÀßÄê ¤³¤³¤«¤é -->
|
|---|
| 121 | <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
|
|---|
| 122 | <tr>
|
|---|
| 123 | <td colspan="3"><img src="/img/contents/contents_title_top.gif" width="678" height="7" alt=""></td>
|
|---|
| 124 | </tr>
|
|---|
| 125 | <tr>
|
|---|
| 126 | <td background="/img/contents/contents_title_left_bg.gif"><img src="/img/contents/contents_title_left.gif" width="22" height="12" alt=""></td>
|
|---|
| 127 | <td bgcolor="#636469" width="638" class="fs14n"><span class="white"><!--¥³¥ó¥Æ¥ó¥Ä¥¿¥¤¥È¥ë-->CSV½ÐÎÏÀßÄê</span></td>
|
|---|
| 128 | <td background="/img/contents/contents_title_right_bg.gif"><img src="/img/common/_.gif" width="18" height="1" alt=""></td>
|
|---|
| 129 | </tr>
|
|---|
| 130 | <tr>
|
|---|
| 131 | <td colspan="3"><img src="/img/contents/contents_title_bottom.gif" width="678" height="7" alt=""></td>
|
|---|
| 132 | </tr>
|
|---|
| 133 | <tr>
|
|---|
| 134 | <td colspan="3"><img src="/img/contents/main_bar.jpg" width="678" height="10" alt=""></td>
|
|---|
| 135 | </tr>
|
|---|
| 136 | </table>
|
|---|
| 137 |
|
|---|
| 138 | <table width="678" border="0" cellspacing="1" cellpadding="5" summary=" ">
|
|---|
| 139 | <tr class="fs12n">
|
|---|
| 140 | <td bgcolor="#f2f1ec" align="center" colspan=2><strong>SQLÀßÄê</strong></td>
|
|---|
| 141 | </tr>
|
|---|
| 142 | <tr class="fs12n">
|
|---|
| 143 | <td bgcolor="#f2f1ec" align="center" width="100">̾¾Î<span class="red"> *</span></td>
|
|---|
| 144 | <td bgcolor="#ffffff" align="left">
|
|---|
| 145 | <span class="red12"><!--{$arrErr.name}--></span>
|
|---|
| 146 | <input type="text" name="name" value="<!--{$arrSqlData.name|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" style="<!--{if $arrErr.name != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}--><!--{/if}-->" size="60" class="box60" /><span class="red"> ¡Ê¾å¸Â<!--{$smarty.const.STEXT_LEN}-->ʸ»ú¡Ë</span>
|
|---|
| 147 | </td>
|
|---|
| 148 | </tr>
|
|---|
| 149 | <tr class="fs12n">
|
|---|
| 150 | <td bgcolor="#f2f1ec" align="center" width="100">SQLʸ<br>¡ÊSELECT¤Ïµ½Ò¤·¤Ê¤¤¤Ç¤¯¤À¤µ¤¤¡£¡Ë<span class="red"> *</span></td>
|
|---|
| 151 | <td bgcolor="#ffffff" align="left">
|
|---|
| 152 | <span class="red12"><!--{$arrErr.sql}--></span>
|
|---|
| 153 | <div>
|
|---|
| 154 | <textarea name="sql" cols=75 rows=30 align="left" wrap=off style="<!--{if $arrErr.sql != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}--> width: 547px;"><!--{$arrSqlData.sql}--></textarea>
|
|---|
| 155 | </div>
|
|---|
| 156 | </td>
|
|---|
| 157 | </tr>
|
|---|
| 158 | </table>
|
|---|
| 159 |
|
|---|
| 160 | <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
|
|---|
| 161 | <tr>
|
|---|
| 162 | <td bgcolor="#cccccc"><img src="/img/common/_.gif" width="1" height="5" alt=""></td>
|
|---|
| 163 | <td><img src="/img/contents/tbl_top.gif" width="676" height="7" alt=""></td>
|
|---|
| 164 | <td bgcolor="#cccccc"><img src="/img/common/_.gif" width="1" height="5" alt=""></td>
|
|---|
| 165 | </tr>
|
|---|
| 166 | <tr>
|
|---|
| 167 | <td bgcolor="#cccccc"><img src="/img/common/_.gif" width="1" height="10" alt=""></td>
|
|---|
| 168 | <td bgcolor="#e9e7de" align="center">
|
|---|
| 169 | <table border="0" cellspacing="0" cellpadding="0" summary=" ">
|
|---|
| 170 | <tr>
|
|---|
| 171 | <td>
|
|---|
| 172 | <input type="image" onMouseover="chgImgImageSubmit('/img/contents/btn_regist_on.jpg',this)" onMouseout="chgImgImageSubmit('/img/contents/btn_regist.jpg',this)" src="/img/contents/btn_regist.jpg" width="123" height="24" alt="¤³¤ÎÆâÍÆ¤ÇÅÐÏ¿¤¹¤ë" border="0" name="subm" onClick="mode.value='confirm'; fnTargetSelf();">
|
|---|
| 173 | <input type="image" onMouseover="chgImgImageSubmit('/img/contents/btn_confirm_on.jpg',this)" onMouseout="chgImgImageSubmit('/img/contents/btn_confirm.jpg',this)" src="/img/contents/btn_confirm.jpg" width="123" height="24" alt="³Îǧ¥Ú¡¼¥¸¤Ø" border="0" name="subm" onClick="doPreview(); return false;">
|
|---|
| 174 | </td>
|
|---|
| 175 | </tr>
|
|---|
| 176 | </table>
|
|---|
| 177 | </td>
|
|---|
| 178 | <td bgcolor="#cccccc"><img src="/img/common/_.gif" width="1" height="10" alt=""></td>
|
|---|
| 179 | </tr>
|
|---|
| 180 | <tr>
|
|---|
| 181 | <td colspan="3"><img src="/img/contents/tbl_bottom.gif" width="678" height="8" alt=""></td>
|
|---|
| 182 | </tr>
|
|---|
| 183 | </table>
|
|---|
| 184 | <!-- SQLÀßÄê ¤³¤³¤Þ¤Ç -->
|
|---|
| 185 |
|
|---|
| 186 | <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
|
|---|
| 187 | <tr><td colspan="3"><img src="/img/contents/main_bar.jpg" width="678" height="10" alt=""></td></tr>
|
|---|
| 188 | </table>
|
|---|
| 189 |
|
|---|
| 190 | <!-- DB°ìÍ÷ ¤³¤³¤«¤é -->
|
|---|
| 191 | <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
|
|---|
| 192 | <tr>
|
|---|
| 193 | <td width="50%">
|
|---|
| 194 | <table width="100%" border="0" cellspacing="1" cellpadding="5" summary=" ">
|
|---|
| 195 | <tr class="fs12n">
|
|---|
| 196 | <td bgcolor="#f2f1ec" align="center" colspan=2><strong>¥Æ¡¼¥Ö¥ë°ìÍ÷</strong></td>
|
|---|
| 197 | </tr>
|
|---|
| 198 | <tr class="fs12n">
|
|---|
| 199 | <td bgcolor="#ffffff" align="center">
|
|---|
| 200 | <select name="arrTableList[]" size="20" style="width:325px; height:300px;" onChange="mode.value=''; selectTable.value=this.value; submit();" onDblClick="sql.value = sql.value +' , ' + this.value;">
|
|---|
| 201 | <!--{html_options options=$arrTableList selected=$selectTable}-->
|
|---|
| 202 | </select>
|
|---|
| 203 | </td>
|
|---|
| 204 | </tr>
|
|---|
| 205 | </table>
|
|---|
| 206 | </td>
|
|---|
| 207 | <td width="50%">
|
|---|
| 208 | <table width="100%" border="0" cellspacing="1" cellpadding="5" summary=" ">
|
|---|
| 209 | <tr class="fs12n">
|
|---|
| 210 | <td bgcolor="#f2f1ec" align="center" colspan=2><strong>¹àÌܰìÍ÷</strong></td>
|
|---|
| 211 | </tr>
|
|---|
| 212 | <tr class="fs12n">
|
|---|
| 213 | <td bgcolor="#ffffff" align="center">
|
|---|
| 214 | <select name="arrColList[]" size="20" style="width:325px; height:300px;" onDblClick="sql.value = sql.value +' , ' + this.value;">
|
|---|
| 215 | <!--{html_options options=$arrColList}-->
|
|---|
| 216 | </select>
|
|---|
| 217 | </td>
|
|---|
| 218 | </tr>
|
|---|
| 219 | </table>
|
|---|
| 220 | </td>
|
|---|
| 221 | </tr>
|
|---|
| 222 | </table>
|
|---|
| 223 | <!-- DB°ìÍ÷ ¤³¤³¤Þ¤Ç -->
|
|---|
| 224 | </td>
|
|---|
| 225 | <td background="/img/contents/main_right.jpg"><img src="/img/common/_.gif" width="14" height="1" alt=""></td>
|
|---|
| 226 | </tr>
|
|---|
| 227 | <tr>
|
|---|
| 228 | <td colspan="3"><img src="/img/contents/main_bottom.jpg" width="706" height="14" alt=""></td>
|
|---|
| 229 | </tr>
|
|---|
| 230 | <tr><td height="30"></td></tr>
|
|---|
| 231 | </table>
|
|---|
| 232 | </td>
|
|---|
| 233 | </tr>
|
|---|
| 234 | <!--¥á¥¤¥ó¥¨¥ê¥¢-->
|
|---|
| 235 | </table>
|
|---|
| 236 | <!--¢¥ÅÐÏ¿¥Æ¡¼¥Ö¥ë¤³¤³¤Þ¤Ç-->
|
|---|
| 237 | </td>
|
|---|
| 238 | </tr>
|
|---|
| 239 | </form>
|
|---|
| 240 | </table>
|
|---|
| 241 | <!--¡ú¡ú¥á¥¤¥ó¥³¥ó¥Æ¥ó¥Ä¡ú¡ú-->
|
|---|
| 242 |
|
|---|
| 243 |
|
|---|
| 244 | </script>
|
|---|