Index: branches/dev/data/downloads/module/ebis_tag.php
===================================================================
--- branches/dev/data/downloads/module/ebis_tag.php	(revision 15043)
+++ 	(revision )
@@ -1,202 +1,0 @@
-<?php
-/**
- * 
- * @copyright	2000-2007 LOCKON CO.,LTD. All Rights Reserved.
- * @version	CVS: $Id: ebis_tag.php,v 1.30 2007/07/18 04:02:40 adachi Exp $
- * @link		http://www.lockon.co.jp/
- *
- */
-
-//require_once("./require.php");
-//require_once MODULE_PATH . 'ebis_tag_conf.php';
-
-// Ç§¾Ú³ÎÇ§
-$objSess = new SC_Session();
-sfIsSuccess($objSess);
-
-//¥Ú¡¼¥¸´ÉÍý¥¯¥é¥¹
-class LC_Page {
-	//¥³¥ó¥¹¥È¥é¥¯¥¿
-	function LC_Page() {
-		//¥á¥¤¥ó¥Æ¥ó¥×¥ì¡¼¥È¤Î»ØÄê
-		$this->tpl_mainpage  = MODULE_PATH . 'ebis_tag.tpl';
-		$this->tpl_subtitle  = 'EBiS¥¿¥°Ëä¤á¹þ¤ßµ¡Ç½';
-        $this->tpl_uniqid    = '';
-        
-        global $arrEBiSTagCustomerId;
-        $this->arrEBiSTagCustomerId = $arrEBiSTagCustomerId;
-        global $arrEBiSTagPayment;
-        $this->arrEBiSTagPayment = $arrEBiSTagPayment;
-        global $arrEBiSTagOptions;
-        $this->arrEBiSTagOptions = $arrEBiSTagOptions;
-	}
-}
-
-$objPage = new LC_Page();
-$objView = new SC_AdminView();
-
-// ¥Ñ¥é¥á¡¼¥¿´ÉÍý¥¯¥é¥¹
-$objFormParam = new SC_FormParam();
-$objFormParam = lfInitParam($objFormParam);
-// POSTÃÍ¤Î¼èÆÀ
-$objFormParam->setParam($_POST);
-
-switch($_POST['mode']) {
-case 'edit':
-    // ²èÌÌÁ«°Ü¤ÎÀµÅöÀ­¥Á¥§¥Ã¥¯
-    //if (sfIsValidTransition($objSess) == false) {
-    //    sfDispError(INVALID_MOVE_ERRORR);
-    //}
-    
-	// ÆþÎÏ¥¨¥é¡¼È½Äê
-	$objPage->arrErr = $objFormParam->checkError();
-	if(count($objPage->arrErr) == 0) {
-		$arrRet = $objFormParam->getHashArray();
-		$sqlval['sub_data'] = serialize($arrRet);
-		$objQuery = new SC_Query();
-		$objQuery->update("dtb_module", $sqlval, "module_id = ?", array(EBIS_TAG_MID));
-		// javascript¼Â¹Ô
-		$objPage->tpl_onload = "window.close();";
-	}
-	break;
-case 'csv':
-    // ²èÌÌÁ«°Ü¤ÎÀµÅöÀ­¥Á¥§¥Ã¥¯
-    //if (sfIsValidTransition($objSess) == false) {
-    //    sfDispError(INVALID_MOVE_ERRORR);
-    //}
-    $csv = lgGetCsvData();
-    sfCSVDownload($csv, 'ebis_tag_');
-    exit;
-default:
-	$arrRet = $objQuery->select("sub_data", "dtb_module", "module_id = ?", array(EBIS_TAG_MID));
-	$arrSubData = unserialize($arrRet[0]['sub_data']);
-	$objFormParam->setParam($arrSubData);
-    
-    // ¥æ¥Ë¡¼¥¯ID¤òËä¤á¹þ¤ß
-    // $objPage->tpl_uniqid = $objSess->getUniqId();
-	break;
-}
-
-$objPage->arrForm = $objFormParam->getFormParamList();
-$objView->assignobj($objPage);		//ÊÑ¿ô¤ò¥Æ¥ó¥×¥ì¡¼¥È¤Ë¥¢¥µ¥¤¥ó¤¹¤ë
-$objView->display($objPage->tpl_mainpage);		//¥Æ¥ó¥×¥ì¡¼¥È¤Î½ÐÎÏ
-//-------------------------------------------------------------------------------------------------------
-/* ¥Ñ¥é¥á¡¼¥¿¾ðÊó¤Î½é´ü²½ */
-function lfInitParam($objFormParam) {
-	$objFormParam->addParam("¥æ¡¼¥¶ID", "user", STEXT_LEN, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK"));
-	$objFormParam->addParam("¥Ñ¥¹¥ï¡¼¥É", "pass", STEXT_LEN, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK"));
-    $objFormParam->addParam("¥í¥°¥¤¥óURL", "login_url", STEXT_LEN, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK"));
-    $objFormParam->addParam("EBiS°ú¿ô", "cid", STEXT_LEN, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK"));
-    
-    $objFormParam->addParam("¸ÜµÒID", "m1id", INT_LEN, "", array("MAX_LENGTH_CHECK", 'NUM_CHECK'));
-    $objFormParam->addParam("¹ØÆþ¶â³Û", "a1id", INT_LEN, "", array("MAX_LENGTH_CHECK", 'NUM_CHECK'));
-    
-    for ($i = 1; $i <= EBiS_TAG_OPTIONS_MAX; $i++) {
-        $title = "Ç¤°Õ¹àÌÜ$i";
-        $name  = 'o' . $i . 'id';
-        $objFormParam->addParam(
-            $title, $name, INT_LEN, "",
-            array("MAX_LENGTH_CHECK", "NUM_CHECK")
-        );
-    }
-	return $objFormParam;
-}
-
-/* CSV¼èÆÀ */
-function lgGetCsvData() {
-    $csv  = lfGetDetailPageCSV();
-    $csv .= lfGetListPageCSV();
-    $csv .= lfGetFrontPageCSV();
-    return $csv;
-}
-
-function lfGetDetailPageCSV() {
-    $table    = 'dtb_products';
-    $colmuns  = 'product_id, name';
-    $objQuery = new SC_Query();
-    
-    $arrRet = $objQuery->select($colmuns, $table);
-    
-    $arrCSV = array();
-    foreach ($arrRet as $key => $product) {
-        $id  = $product['product_id'];
-        $url = SITE_URL . 'products/detail.php?product_id=';
-        $title = str_replace('"', '\"', $product['name']);
-        
-        $arrCSV[$key]['page_id']    = '"' . 'detail-p' . $id . '"';
-        $arrCSV[$key]['page_title'] = '"' . $title . '"';
-        $arrCSV[$key]['url']        = '"' . $url . $id . '"';
-    }
-    
-    return lfCreateCSV($arrCSV);
-}
-
-function lfGetListPageCSV() {
-    $table    = 'dtb_category';
-    $colmuns  = 'category_id, category_name';
-    $objQuery = new SC_Query();
-    
-    $arrRet = $objQuery->select($colmuns, $table);
-    
-    $arrCSV = array();
-    foreach ($arrRet as $key => $category) {
-        $id  = $category['category_id'];
-        $url = SITE_URL . 'products/list.php?category_id=';
-        $title = str_replace('"', '\"', $category['category_name']);
-        
-        $arrCSV[$key]['page_id']    = '"' . 'list-c' . $id . '"';
-        $arrCSV[$key]['page_title'] = '"' . $title . '"';
-        $arrCSV[$key]['url']        = '"' . $url . $id . '"';
-    }
-    return lfCreateCSV($arrCSV);
-}
-
-function lfCreateCSV ($arrCSV) {
-    $csv_str = '';
-    foreach ($arrCSV as $csv) {
-        $csv_str .= join(',', $csv) . "\n";
-    }
-    return $csv_str;
-}
-
-function lfGetFrontPageCSV() {
-    $arrList = array(
-        array('page_id' => 'top', 'page_title' => '' , 'url' => 'index.php'),
-        array('page_id' => 'abouts_index'),
-        array('page_id' => 'cart_index'),
-        array('page_id' => 'contact_index'),
-        array('page_id' => 'contact_confirm', 'page_title' => '', 'url' => 'contact/index.php'),
-        array('page_id' => 'contact_complete'),
-        array('page_id' => 'order_index'),
-        array('page_id' => 'entry_kiyaku'),
-        array('page_id' => 'entry_index'),
-        array('page_id' => 'entry_confirm', 'page_title' => '', 'url' => 'entry/index.php'),
-        array('page_id' => 'regist_complete', 'page_title' => '', 'url' => 'entry/complete.php'),
-        array('page_id' => 'products_favorite'),
-        array('page_id' => 'shopping_deliv'),
-        array('page_id' => 'shopping_deliv'),
-        array('page_id' => 'shopping_payment'),
-        array('page_id' => 'shopping_confirm'),
-        array('page_id' => 'thanks', 'page_title' => '', 'url' => 'shopping/complete.php'),
-        array('page_id' => 'mypage_index'),
-        array('page_id' => 'mypage_change'),
-        array('page_id' => 'mypage_change_confirm', 'page_title' => '', 'url' => 'mypage/change.php'),
-        array('page_id' => 'mypage_change_complete', 'page_title' => '', 'url' => 'mypage/change_complete.php'),
-        array('page_id' => 'error'),
-    );
-    
-    foreach ($arrList as $key => $list) {
-        if ( empty($arrList[$key]['page_title']) ) {
-            $arrList[$key]['page_title'] = $arrList[$key]['page_id'];
-        }
-        
-        if ( empty($arrList[$key]['url']) ) {
-            $arrList[$key]['url'] = $arrList[$key]['page_id'] . '.php';
-        }
-        
-        $arrList[$key]['url'] = SITE_URL . str_replace('_', '/', $arrList[$key]['url']);
-    }
-    
-    return lfCreateCSV($arrList);
-}
-?>
Index: branches/dev/data/downloads/module/ebis_tag.tpl
===================================================================
--- branches/dev/data/downloads/module/ebis_tag.tpl	(revision 15040)
+++ 	(revision )
@@ -1,191 +1,0 @@
-<!--{*
-/*
- * Copyright(c) 2000-2006 LOCKON CO.,LTD. All Rights Reserved.
- *
- * http://www.lockon.co.jp/
- */
-*}-->
-<!--¡¡-->
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
-
-<head>
-<meta http-equiv="content-type" content="application/xhtml+xml; charset=EUC-JP" />
-<meta http-equiv="content-script-type" content="text/javascript" />
-<meta http-equiv="content-style-type" content="text/css" />
-<link rel="stylesheet" href="<!--{$smarty.const.URL_DIR}-->admin/css/contents.css" type="text/css" media="all" />
-<script type="text/javascript" src="<!--{$smarty.const.URL_DIR}-->js/css.js"></script>
-<script type="text/javascript" src="<!--{$smarty.const.URL_DIR}-->js/navi.js"></script>
-<script type="text/javascript" src="<!--{$smarty.const.URL_DIR}-->js/win_op.js"></script>
-<script type="text/javascript" src="<!--{$smarty.const.URL_DIR}-->js/site.js"></script>
-<script type="text/javascript" src="<!--{$smarty.const.URL_DIR}-->js/admin.js"></script>
-<!--{include file='css/contents.tpl'}-->
-<title><!--{$tpl_subtitle}--></title>
-<script type="text/javascript">
-<!--
-self.moveTo(20,20);self.focus();
-//-->
-</script>
-</head>
-
-<body bgcolor="#ffffff" text="#666666" link="#007bb7" vlink="#007bb7" alink="#cc0000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="<!--{$tpl_onload}-->">
-<noscript>
-<link rel="stylesheet" href="<!--{$smarty.const.URL_DIR}-->admin/css/common.css" type="text/css" />
-</noscript>
-
-<div align="center">
-<!--¡ú¡ú¥á¥¤¥ó¥³¥ó¥Æ¥ó¥Ä¡ú¡ú-->
-<table width="500" border="0" cellspacing="0" cellpadding="0" summary=" ">
-<form name="form1" id="form1" method="post" action="<!--{$smarty.server.REQUEST_URI}-->">
-<input type="hidden" name="mode" value="edit">
-<input type="hidden" name="uniqid" value="<!--{$tpl_uniqid}-->">
-
-	<tr valign="top">
-		<td class="mainbg">
-			<!--¢§ÅÐÏ¿¥Æ¡¼¥Ö¥ë¤³¤³¤«¤é-->
-			<table width="500" border="0" cellspacing="0" cellpadding="0" summary=" ">
-				<!--¥á¥¤¥ó¥¨¥ê¥¢-->
-				<tr>
-					<td align="center">
-						<table width="470" border="0" cellspacing="0" cellpadding="0" summary=" ">
-							<tr><td height="14"></td></tr>
-							<tr>
-								<td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_top.jpg" width="470" height="14" alt=""></td>
-							</tr>
-							<tr>
-								<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>
-								<td bgcolor="#cccccc">
-									
-									<table width="440" border="0" cellspacing="0" cellpadding="0" summary=" ">
-										<tr>
-											<td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_top.gif" width="440" height="7" alt=""></td>
-										</tr>
-										<tr>
-											<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>
-											<td bgcolor="#636469" width="400" class="fs14n"><span class="white"><!--¥³¥ó¥Æ¥ó¥Ä¥¿¥¤¥È¥ë--><!--{$tpl_subtitle}--></span></td>
-											<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>
-										</tr>
-										<tr>
-											<td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_bottom.gif" width="440" height="7" alt=""></td>
-										</tr>
-										<tr>
-											<td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_bar.jpg" width="440" height="10" alt=""></td>
-										</tr>
-									</table>
-									
-									<table width="440" border="0" cellspacing="1" cellpadding="8" summary=" ">
-										<tr class="fs12n">
-											<td width="90" bgcolor="#f3f3f3">¥æ¡¼¥¶ID<span class="red">¢¨</span></td>
-											<td width="337" bgcolor="#ffffff">
-											<span class="red"><!--{$arrErr.user}--></span>
-											<input type="text" name="user" size="30" style="<!--{$arrErr.user|sfGetErrorColor}-->" value="<!--{$arrForm.user.value}-->" class="box30" maxlength="50"/>
-											</td>
-										</tr>	
-										<tr class="fs12n">
-											<td width="90" bgcolor="#f3f3f3">¥Ñ¥¹¥ï¡¼¥É<span class="red">¢¨</span></td>
-											<td width="337" bgcolor="#ffffff">
-											<span class="red"><!--{$arrErr.pass}--></span>
-											<input type="password" name="pass" size="30" style="<!--{$arrErr.pass|sfGetErrorColor}-->" value="<!--{$arrForm.pass.value}-->" class="box30" maxlength="50"/>
-											</td>
-										</tr>
-										<tr class="fs12n">
-											<td width="90" bgcolor="#f3f3f3">¥í¥°¥¤¥óURL<span class="red">¢¨</span></td>
-											<td width="337" bgcolor="#ffffff">
-											<span class="red"><!--{$arrErr.login_url}--></span>
-											<input type="text" name="login_url" size="30" style="<!--{$arrErr.login_url|sfGetErrorColor}-->" value="<!--{$arrForm.login_url.value}-->" class="box30" maxlength="50"/>
-											</td>
-										</tr>
-										<tr class="fs12n">
-											<td width="90" bgcolor="#f3f3f3">EBiS°ú¿ô<span class="red">¢¨</span></td>
-											<td width="337" bgcolor="#ffffff">
-											<span class="red"><!--{$arrErr.cid}--></span>
-											<input type="text" name="cid" size="30" style="<!--{$arrErr.cid|sfGetErrorColor}-->" value="<!--{$arrForm.cid.value}-->" class="box30" maxlength="50"/>
-											</td>
-										</tr>
-										<tr class="fs12n">
-											<td width="90" bgcolor="#f3f3f3">¸ÜµÒID</td>
-											<td width="337" bgcolor="#ffffff">
-											<!--{* ¸ÜµÒID¡¢ebis¥¿¥°¤Ç¤Ï"m1id" *}-->
-											<!--{assign var=key value="m1id"}-->
-											<span class="red12"><!--{$arrErr[$key]}--></span>
-											<!--{html_radios name="$key" options=$arrEBiSTagCustomerId selected=$arrForm[$key].value}-->
-											</td>
-										</tr>
-										<tr class="fs12n">
-											<td width="90" bgcolor="#f3f3f3">¹ØÆþ¶â³Û</td>
-											<td width="337" bgcolor="#ffffff">
-											<!--{* ¹ØÆþ¶â³Û¡¢ebis¥¿¥°¤Ç¤Ï"a1id" *}-->
-											<!--{assign var=key value="a1id"}-->
-											<span class="red12"><!--{$arrErr[$key]}--></span>
-											<!--{html_radios name="$key" options=$arrEBiSTagPayment selected=$arrForm[$key].value}-->
-											</td>
-										</tr>
-										<!--{section name="options_loop" loop=$smarty.const.EBiS_TAG_OPTIONS_MAX}-->
-										<tr class="fs12n">
-											<!--{assign var=index value="`$smarty.section.options_loop.iteration`"}-->
-											<td width="90" bgcolor="#f3f3f3">Ç¤°Õ¹àÌÜ<!--{$index}--></td>
-											<td width="337" bgcolor="#ffffff">
-											<!--{* Ç¤°Õ¹àÌÜ¡¢ebis¥¿¥°¤Ç¤Ïo1id, o2id, o3id... *}-->
-											<!--{assign var=key value="o`$index`id"}-->
-											<span class="red12"><!--{$arrErr[$key]}--></span>
-											<select name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">
-											<!--{html_options options=$arrEBiSTagOptions selected=$arrForm[$key].value}-->
-											</select>
-											</td>
-										</tr>
-										<!--{/section}-->
-									</table>
-									
-									<table width="440" border="0" cellspacing="1" cellpadding="8" summary=" ">
-										<tr class="fs12n">
-											<td width="90" bgcolor="#f3f3f3" align="center">
-											<input type="button" onClick="fnModeSubmit('csv','','');document.form1.mode.value='edit';return false;" value="¥Ú¡¼¥¸ÅÐÏ¿CSV¤ò¥À¥¦¥ó¥í¡¼¥É">
-											</td>
-										</tr>
-									</table>
-									
-									<table width="440" border="0" cellspacing="0" cellpadding="0" summary=" ">
-										<tr>
-											<td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td>
-											<td><img src="<!--{$smarty.const.URL_DIR}-->img/contents/tbl_top.gif" width="438" height="7" alt=""></td>
-											<td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td>
-										</tr>
-										<tr>
-											<td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td>
-											<td bgcolor="#e9e7de" align="center">
-											<table border="0" cellspacing="0" cellpadding="0" summary=" ">
-												<tr>
-													<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" ></td>
-												</tr>
-											</table>
-											</td>
-											<td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td>
-										</tr>
-										<tr>
-											<td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/tbl_bottom.gif" width="440" height="8" alt=""></td>
-										</tr>
-									</table>
-								</td>
-								<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>
-							</tr>
-							<tr>
-								<td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_bottom.jpg" width="470" height="14" alt=""></td>
-							</tr>
-							<tr><td height="30"></td></tr>
-						</table>
-					</td>
-				</tr>
-				<!--¥á¥¤¥ó¥¨¥ê¥¢-->
-			</table>
-			<!--¢¥ÅÐÏ¿¥Æ¡¼¥Ö¥ë¤³¤³¤Þ¤Ç-->
-		</td>
-	</tr>
-</form>
-</table>
-<!--¡ú¡ú¥á¥¤¥ó¥³¥ó¥Æ¥ó¥Ä¡ú¡ú-->
-</div>
-
-</body>
-</html>
-
-
Index: branches/dev/data/downloads/module/ebis_tag_text.tpl
===================================================================
--- branches/dev/data/downloads/module/ebis_tag_text.tpl	(revision 15040)
+++ 	(revision )
@@ -1,14 +1,0 @@
-<!-- EBiS tag version2.00 start -->
-<script type="text/javascript">
-if ( location.protocol == 'http:' ){ 
-	strServerName = <!--{$arrEbis.login_url}-->; 
-} else { 
-	strServerName = 'https://secure2.ebis.ne.jp/ver3';
-}
-cid = '<!--{$arrEbis.cid}-->'; pid = '<!--{$arrEbis.pid}-->'; m1id='<!--{$arrEbis.m1id}-->'; a1id='<!--{$arrEbis.a1id}-->'; o1id='<!--{$arrEbis.o1id}-->'; o2id='<!--{$arrEbis.o2id}-->'; o3id='<!--{$arrEbis.o3id}-->'; o4id='<!--{$arrEbis.o4id}-->'; o5id='<!--{$arrEbis.o5id}-->';
-document.write("<scr" + "ipt type=\"text\/javascript\" src=\"" + strServerName + "\/ebis_tag.php?cid=" + cid + "&pid=" + pid + "&m1id=" + m1id + "&a1id=" + a1id + "&o1id=" + o1id + "&o2id=" + o2id + "&o3id=" + o3id + "&o4id=" + o4id + "&o5id=" + o5id + "\"><\/scr" + "ipt>");
-</script>
-<noscript>
-<img src="https://secure2.ebis.ne.jp/ver3/log.php?argument=<!--{$arrEbis.cid}-->&ebisPageID=<!--{$arrEbis.pid}-->" width="0" height="0">
-</noscript>
-<!-- EBiS tag end -->
