source: branches/beta/data/Smarty/templates_c/admin/%%4A^4A5^4A5244B7%%csv.tpl.php @ 1

Revision 1, 11.6 KB checked in by root, 20 years ago (diff)

new import

Line 
1<?php /* Smarty version 2.6.13, created on 2007-01-19 12:59:10
2         compiled from contents/csv.tpl */ ?>
3<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
4smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'contents/csv.tpl', 156, false),array('modifier', 'sfGetErrorColor', 'contents/csv.tpl', 211, false),array('function', 'html_options', 'contents/csv.tpl', 212, false),)), $this); ?>
5<script type="text/javascript">
6<!--
7function fnMoveOption(sel , moveflg) {
8    var fm = document.form1;
9    var arrChoice = new Array();    // ÁªÂò¤µ¤ì¤Æ¤¤¤ë¹àÌÜ
10    var arrNotChoice = new Array(); // ÁªÂò¤µ¤ì¤Æ¤¤¤Ê¤¤¹àÌÜ
11    var arrNew = new Array();       // °Üư¸å¤Î¥ê¥¹¥È
12    var arrTmp = new Array();
13    var arrRev = new Array();
14   
15    if(fm[sel].selectedIndex == -1) alert("²¿¤âÁªÂò¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£");
16    else {
17        // ²¼¤Ë°Üư¤¹¤ë¾ì¹ç¤Ë¤Ï¤Þ¤ºOPTION¤òµÕ¤Ë¤¹¤ë
18        if (moveflg == 'bottom') {
19            for(i=fm[sel].length-1, j=0; i >= 0; i--, j++){
20                fm[sel].options[i].label=i;     // ½çÈÖ¤òlabel¤ËÂàÈò
21                arrRev[j] = fm[sel].options[i];
22            }
23            for(i=0; i < arrRev.length; i++){
24                fm[sel].options[i] = new Option(arrRev[i].text, arrRev[i].value);
25                fm[sel].options[i].selected = arrRev[i].selected;
26            }
27        }
28
29        // °ìÈÖ²¼¤Ë¶õÇò¤òÄɲÃ
30        fm[sel].options[fm[sel].length] = new Option('', '');
31       
32        for(i = 0, choiceCnt = 0, notCnt = 0; i < fm[sel].length; i++) {
33            if(!fm[sel].options[i].selected) {
34                // ÁªÂò¤µ¤ì¤Æ¤¤¤Ê¤¤¹àÌÜÇÛÎó¤òÀ¸À®
35                fm[sel].options[i].label=i;     // ½çÈÖ¤òlabel¤ËÂàÈò
36                arrNotChoice[choiceCnt] = fm[sel].options[i];
37                choiceCnt++;
38            }else{
39                // ÁªÂò¤µ¤ì¤Æ¤¤¤ë¹àÌÜÇÛÎó¤òÀ¸À®
40                fm[sel].options[i].label=i;     // ½çÈÖ¤òlabel¤ËÂàÈò
41                arrChoice[notCnt] = fm[sel].options[i];
42                notCnt++;
43            }
44        }
45       
46        // ÁªÂò¹àÌܤò¾å¤Ë°Üư
47        for(i = arrChoice.length; i < 1; i--){
48            arrChoice[i].label = arrChoice[i-1].label+1;
49        }
50
51        // ÈóÁªÂò¹àÌܤò²¼¤Ë°Üư
52        for(i = 0; i < arrNotChoice.length - 1; i++){
53            arrNotChoice[i].label = arrNotChoice[i+1].label-1;
54        }   
55
56        // ÁªÂò¹àÌܤÈÈóÁªÂò¹àÌܤò¥Þ¡¼¥¸¤¹¤ë
57        for(choiceCnt = 0, notCnt = 0, cnt = 0; cnt < fm[sel].length; cnt++){
58            if (choiceCnt >= arrChoice.length) {
59                arrNew[cnt] = arrNotChoice[notCnt];
60                notCnt++;
61            }else if (notCnt >= arrNotChoice.length) {
62                arrNew[cnt] = arrChoice[choiceCnt];
63                choiceCnt++;
64            }else{
65                if(arrChoice[choiceCnt].label-1 <= arrNotChoice[notCnt].label){
66                    arrNew[cnt] = arrChoice[choiceCnt];
67                    choiceCnt++;
68                }else{
69                    arrNew[cnt] = arrNotChoice[notCnt];
70                    notCnt++;
71                }
72            }
73        }
74
75        // ²¼¤Ë°Üư¤¹¤ë¾ì¹ç¤Ë¤ÏµÕ¤Ë¤·¤¿¤â¤Î¤ò¸µ¤ËÌ᤹
76        if (moveflg == 'bottom') {
77            for(i=arrNew.length-2, j=0; i >= 0; i--, j++){
78                arrTmp[j] = arrNew[i];
79            }
80            arrTmp[j]="";
81            arrNew = arrTmp;
82        }
83
84        // option¤òºÆºîÀ®
85        fm[sel].length = arrNew.length - 1;
86        for(i=0; i < arrNew.length - 1; i++){
87            fm[sel].options[i] = new Option(arrNew[i].text, arrNew[i].value);
88            fm[sel].options[i].selected = arrNew[i].selected;
89        }
90    }
91}
92
93function fnReplaceOption(restSel, addSel) {
94    var fm = document.form1;
95    var arrRest = new Array();  // »Ä¤ê¤Î¥ê¥¹¥È
96    var arrAdd  = new Array();  // ÄɲäΥꥹ¥È
97   
98    if(fm[restSel].selectedIndex == -1) alert("²¿¤âÁªÂò¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£");
99    else {
100        for(i = 0, restCnt = 0, addCnt = 0; i < fm[restSel].length; i++) {
101            if(!fm[restSel].options[i].selected) {
102                // »ÄÍ×ÁǤÎÇÛÎó¤òÀ¸À®
103                arrRest[restCnt] = fm[restSel].options[i];
104                restCnt++;
105            }else{
106                // ÄɲÃÍ×ÁǤÎÇÛÎó¤òÀ¸À®
107                arrAdd[addCnt] = fm[restSel].options[i];
108                addCnt++;
109            }
110        }
111
112        // »Ä¥ê¥¹¥ÈÀ¸À®
113        fm[restSel].length = arrRest.length;
114        for(i=0; i < arrRest.length; i++)
115        {
116            fm[restSel].options[i] = new Option(arrRest[i].text, arrRest[i].value);
117        }
118
119        // ÄɲÃÀè¤Ë¹àÌܤòÄɲÃ
120        //fm[addSel].options[fm[addSel].length] = new Option(fm[sel2].value, fm[sel2].value);
121       
122        for(i=0; i < arrAdd.length; i++)
123        {
124            fm[addSel].options[fm[addSel].length] = new Option(arrAdd[i].text, arrAdd[i].value);
125            fm[addSel].options[fm[addSel].length-1].selected = true;
126        }
127    }
128}
129
130// submit¤·¤¿¾ì¹ç¤Ë¡¢½ÐÎϹàÌܰìÍ÷¤òÁªÂò¾õÂ֤ˤ¹¤ë
131function lfnCheckList(sel) {
132    var fm = document.form1;
133    for(i = 0; i < fm[sel].length; i++) {
134        fm[sel].options[i].selected = true;
135    }
136}
137
138// ¥ê¥¹¥È¥Ü¥Ã¥¯¥¹¤Î¥µ¥¤¥ºÊѹ¹
139function ChangeSize(button, TextArea, Max, Min, row_tmp){
140    if(TextArea.rows <= Min){
141        TextArea.rows=Max; button.value="¾®¤µ¤¯¤¹¤ë"; row_tmp.value=Max;
142    }else{
143        TextArea.rows =Min; button.value="Â礭¤¯¤¹¤ë"; row_tmp.value=Min;
144    }
145}
146
147//-->
148</script>
149
150
151<!--¡ú¡ú¥á¥¤¥ó¥³¥ó¥Æ¥ó¥Ä¡ú¡ú-->
152<table width="878" border="0" cellspacing="0" cellpadding="0" summary=" ">
153<form name="form1" id="form1" method="post" action="<?php echo ((is_array($_tmp=$_SERVER['PHP_SELF'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
154" onsubmit="lfnCheckList('output_list[]')">
155<input type="hidden" name="mode" value="confirm">
156<input type="hidden" name="tpl_subno_csv" value="<?php echo $this->_tpl_vars['tpl_subno_csv']; ?>
157">
158    <tr valign="top">
159        <td background="<?php echo @URL_DIR; ?>
160img/contents/navi_bg.gif" height="402">
161            <!--¢§SUB NAVI-->
162            <?php $_smarty_tpl_vars = $this->_tpl_vars;
163$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['tpl_subnavi'], 'smarty_include_vars' => array()));
164$this->_tpl_vars = $_smarty_tpl_vars;
165unset($_smarty_tpl_vars);
166 ?>
167            <!--¢¥SUB NAVI-->
168        </td>
169        <td class="mainbg">
170            <!--¢§ÅÐÏ¿¥Æ¡¼¥Ö¥ë¤³¤³¤«¤é-->
171            <table width="737" border="0" cellspacing="0" cellpadding="0" summary=" ">
172                <!--¥á¥¤¥ó¥¨¥ê¥¢-->
173                <tr>
174                    <td align="center">
175                        <table width="706" border="0" cellspacing="0" cellpadding="0" summary=" ">
176                            <tr><td height="14"></td></tr>
177                            <tr>
178                                <td colspan="3"><img src="<?php echo @URL_DIR; ?>
179img/contents/main_top.jpg" width="706" height="14" alt=""></td>
180                            </tr>
181                            <tr>
182                                <td background="<?php echo @URL_DIR; ?>
183img/contents/main_left.jpg"><img src="<?php echo @URL_DIR; ?>
184img/common/_.gif" width="14" height="1" alt=""></td>
185                                <td bgcolor="#cccccc">
186                                    <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
187                                        <tr>
188                                            <td colspan="3"><img src="<?php echo @URL_DIR; ?>
189img/contents/contents_title_top.gif" width="678" height="7" alt=""></td>
190                                        </tr>
191                                        <tr>
192                                            <td background="<?php echo @URL_DIR; ?>
193img/contents/contents_title_left_bg.gif"><img src="<?php echo @URL_DIR; ?>
194img/contents/contents_title_left.gif" width="22" height="12" alt=""></td>
195                                            <td bgcolor="#636469" width="638" class="fs14n"><span class="white"><!--¥³¥ó¥Æ¥ó¥Ä¥¿¥¤¥È¥ë--><?php echo $this->_tpl_vars['SubnaviName']; ?>
196</span></td>
197                                            <td background="<?php echo @URL_DIR; ?>
198img/contents/contents_title_right_bg.gif"><img src="<?php echo @URL_DIR; ?>
199img/common/_.gif" width="18" height="1" alt=""></td>
200                                        </tr>
201                                        <tr>
202                                            <td colspan="3"><img src="<?php echo @URL_DIR; ?>
203img/contents/contents_title_bottom.gif" width="678" height="7" alt=""></td>
204                                        </tr>
205                                        <tr>
206                                            <td colspan="3"><img src="<?php echo @URL_DIR; ?>
207img/contents/main_bar.jpg" width="678" height="10" alt=""></td>
208                                        </tr>
209                                    </table>
210                                   
211                                    <table width="678" border="0" cellspacing="1" cellpadding="0" summary=" "><tr><td>
212                                    <table width="676" border="0" cellspacing="" cellpadding="3" summary=" ">
213                                        <tr class="fs12n">
214                                            <td bgcolor="#ffffff" align="right">
215                                                <input type="button" value=" ¢¥ " onClick="fnMoveOption('output_list[]', 'top');"><br/><br/><br/>
216                                                <input type="button" value=" ¢§ " onClick="fnMoveOption('output_list[]', 'bottom');">
217                                            </td>
218                                            <td bgcolor="#ffffff" align="left">
219                                                <table width="270" border="1" cellspacing="0" cellpadding="3" summary=" ">
220                                                    <tr class="fs12n">
221                                                        <td bgcolor="#f2f1ec" align="center"><strong>½ÐÎϹàÌܰìÍ÷</strong></td>
222                                                    </tr>
223                                                    <tr class="fs12n">
224                                                        <td bgcolor="#ffffff" align="center">
225                                                            <span class="red12"><?php echo $this->_tpl_vars['arrErr']['output_list']; ?>
226</span>
227                                                            <select multiple name="output_list[]" size="30" style="<?php echo ((is_array($_tmp=$this->_tpl_vars['arrErr']['output_list'])) ? $this->_run_mod_handler('sfGetErrorColor', true, $_tmp) : sfGetErrorColor($_tmp)); ?>
228; width:250px; height:425px;">
229                                                            <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['arrOutput']), $this);?>
230
231                                                            </select>
232                                                        </td>
233                                                    </tr>
234                                                </table>
235                                            </td>
236                                            <td bgcolor="#ffffff" align="cneter">
237                                                <input type="button" value="<< ÄɲÃ" onClick="fnReplaceOption('choice_list[]', 'output_list[]');"><br/><br/><br/>
238                                                <input type="button" value="ºï½ü >>" onClick="fnReplaceOption('output_list[]', 'choice_list[]');">
239                                            </td>
240                                            <td bgcolor="#ffffff" align="right">
241                                                <table width="270" border="1" cellspacing="0" cellpadding="3" summary=" ">
242                                                    <tr class="fs12n">
243                                                        <td bgcolor="#f2f1ec" align="center"><strong>½ÐÎϲÄǽ¹àÌܰìÍ÷</strong></td>
244                                                    </tr>
245                                                    <tr class="fs12n">
246                                                        <td bgcolor="#ffffff" align="center">
247                                                            <select multiple name="choice_list[]" size="30" style="width:250px; height:425px;">
248                                                            <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['arrChoice']), $this);?>
249
250                                                            </select>
251                                                        </td>
252                                                    </tr>
253                                                </table>
254                                            </td>
255                                        </tr>
256                                    </table>
257                                    </td></tr></table>
258   
259                                    <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
260                                        <tr>
261                                            <td bgcolor="#cccccc"><img src="<?php echo @URL_DIR; ?>
262img/common/_.gif" width="1" height="5" alt=""></td>
263                                            <td><img src="<?php echo @URL_DIR; ?>
264img/contents/tbl_top.gif" width="676" height="7" alt=""></td>
265                                            <td bgcolor="#cccccc"><img src="<?php echo @URL_DIR; ?>
266img/common/_.gif" width="1" height="5" alt=""></td>
267                                        </tr>
268                                        <tr>
269                                            <td bgcolor="#cccccc"><img src="<?php echo @URL_DIR; ?>
270img/common/_.gif" width="1" height="10" alt=""></td>
271                                            <td bgcolor="#e9e7de" align="center">
272                                            <table border="0" cellspacing="0" cellpadding="0" summary=" ">
273                                                <tr>
274                                                    <td><input type="image" onMouseover="chgImgImageSubmit('<?php echo @URL_DIR; ?>
275img/contents/btn_regist_on.jpg',this)" onMouseout="chgImgImageSubmit('<?php echo @URL_DIR; ?>
276img/contents/btn_regist.jpg',this)" src="<?php echo @URL_DIR; ?>
277img/contents/btn_regist.jpg" width="123" height="24" alt="¤³¤ÎÆâÍÆ¤ÇÅÐÏ¿¤¹¤ë" border="0" name="subm"></td>
278                                                </tr>
279                                            </table>
280                                            </td>
281                                            <td bgcolor="#cccccc"><img src="<?php echo @URL_DIR; ?>
282img/common/_.gif" width="1" height="10" alt=""></td>
283                                        </tr>
284                                        <tr>
285                                            <td colspan="3"><img src="<?php echo @URL_DIR; ?>
286img/contents/tbl_bottom.gif" width="678" height="8" alt=""></td>
287                                        </tr>
288                                    </table>
289                                </td>
290                                <td background="<?php echo @URL_DIR; ?>
291img/contents/main_right.jpg"><img src="<?php echo @URL_DIR; ?>
292img/common/_.gif" width="14" height="1" alt=""></td>
293                            </tr>
294                            <tr>
295                                <td colspan="3"><img src="<?php echo @URL_DIR; ?>
296img/contents/main_bottom.jpg" width="706" height="14" alt=""></td>
297                            </tr>
298                            <tr><td height="30"></td></tr>
299                        </table>
300                    </td>
301                </tr>
302                <!--¥á¥¤¥ó¥¨¥ê¥¢-->
303            </table>
304            <!--¢¥ÅÐÏ¿¥Æ¡¼¥Ö¥ë¤³¤³¤Þ¤Ç-->
305        </td>
306    </tr>
307</form>
308</table>
309<!--¡ú¡ú¥á¥¤¥ó¥³¥ó¥Æ¥ó¥Ä¡ú¡ú-->
310
311
312</script>
Note: See TracBrowser for help on using the repository browser.