<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<tpl> $NCharset </tpl>" />
<link href="<tpl> $template_dir </tpl>/member/css/layout.css" rel="stylesheet" type="text/css" />
<tpl>include file ='../head.config.html'</tpl>
<tpl>include file ='../../../js/validate/member_shoptag.add.html'</tpl>
</head>
<body>
<tpl>include file ='../header.html'</tpl> 
<div id="container761">
  <div class="own_member_main"> 
  <tpl>include file ='own_shop.menu.html'</tpl>
  <div class="member_right">
    <div class="shop_nav_top" style="margin-bottom:0">
	<div class="shop_nav_top"><span><div class="new_main_left">
		<div class="new_main_left1">
			<h1 class="new_text">
			  <tpl> $langShopAddTag </tpl>
	</h1>
	<i></i>
	</div>
	<b></b>
	</div>
		<div id="own_main_rightop"><tpl> $langShopTagExplain </tpl></div>

<div id="own_main_rightop_line" style="margin-top:-3px;">
	  <b class="b4"></b>
	  <b class="b3"></b>
	  <b class="b2"></b>
	  <b class="b1"></b>
	  </div>
	  <div style="float:right; padding:3px"><a href="own_shoptag.php"><tpl> $langShopTagList </tpl></a></div>
    <form id="tag_form" name="tag_form" action="<tpl> $action </tpl>" method="post">
		<input type="hidden" name="tag_id" id="tag_id" value="<tpl> $tag_array.tag_id </tpl>" />
      <table border="1" cellpadding="0" cellspacing="0" bordercolor="#DEEBEF" class="table_thC6ECF8_tdF6F6F6" style="margin-top:10px">
        <tr>
          <th width="174" height="35" align="right" valign="middle" bgcolor="#F5F9FA"><tpl> $langShopTagName </tpl>：</th>
          <td width="589" height="35" align="left" bgcolor="#FCFEFE">　
            <input type="text" name="txtTagname" id="txtTagname" class="new_input" style="width:230px" value="<tpl> $tag_array.tag_name </tpl>"/> <tpl> $langShopFormTagname </tpl>
		  <label style="display:none" for="txtTagname" class="wrong" metaDone="true" generated="true"></label></td>
        </tr>
        <tr>
          <th width="174" height="35" align="right" valign="middle" bgcolor="#F5F9FA"><tpl> $langShopTagDisplay </tpl>：</th>
          <td width="589" height="35" align="left" bgcolor="#FCFEFE">
          	　 <label for="txtTagdisplay1"><input type="radio" name="txtTagdisplay" id="txtTagdisplay1" value="0" <tpl> if $tag_array.tag_display eq '0' || $tag_array.tag_display eq '' </tpl> checked <tpl> /if </tpl> /> <tpl> $langShopTagBlock </tpl></label>
          	<label for="txtTagdisplay2"><input type="radio" name="txtTagdisplay" id="txtTagdisplay2" value="1" <tpl> if $tag_array.tag_display eq '1' </tpl> checked <tpl> /if </tpl> /> <tpl> $langShopTagNone </tpl></label>
          </td>
        </tr>          
        <tr>
          <th width="174" height="35" align="right" valign="middle" bgcolor="#F5F9FA"><tpl> $langShopTagUrlType </tpl>：</th>
          <td width="589" height="35" align="left" bgcolor="#FCFEFE">
          	　 <label for="tag_type1"><input type="radio" name="tag_type" id="tag_type1" value="1" <tpl> if $tag_array.tag_url eq '' || $tag_array.tag_content neq '' </tpl> checked <tpl> /if </tpl> /> <tpl> $langShopTagMyShop </tpl></label>
          	<label for="tag_type2"><input type="radio" name="tag_type" id="tag_type2" value="2" <tpl> if $tag_array.tag_url neq '' </tpl> checked <tpl> /if </tpl> /> <tpl> $langShopTagGoto </tpl></label>
          </td>
        </tr>     
        <tr id="td_tagurl" <tpl> if $tag_array.tag_url eq '' </tpl> style="display:none;" <tpl> /if </tpl> >
          <th width="174" height="35" align="right" valign="middle" bgcolor="#F5F9FA"><tpl> $langShopTagUrl </tpl>：</th>
          <td>　 
          <input type="text" name="txtTagurl" id="txtTagurl" class="new_input" style="width:230px" value="<tpl> $tag_array.tag_url </tpl>"/> <tpl> $langShopFormUrl </tpl>
          <label style="display:none" id="errTagurl" class="wrong"></label> 
          </td>        
        </tr>            
        <tr id="td_tagcontent" <tpl> if $tag_array.tag_url neq '' </tpl> style="display:none;" <tpl> /if </tpl> >
          <th width="174" height="35" align="right" valign="top" bgcolor="#F5F9FA"><tpl> $langShopTagContent </tpl>：</th>
          <td width="589" height="35" align="left" bgcolor="#FCFEFE">
			<tpl>php</tpl>
			include("../classes/resource/fckeditor/fckeditor.php") ;
			$oFCKeditor = new FCKeditor('txtTagcontent') ;
			$oFCKeditor->BasePath	= '../classes/resource/fckeditor/' ;
			$oFCKeditor->ToolbarSet = 'Simple';
			$oFCKeditor->Width	= 588 ;
			$oFCKeditor->Height	= 320 ;
			$oFCKeditor->Value		= $this->_tpl_vars['tag_array']['tag_content'] ;
			$oFCKeditor->Create() ;
			<tpl>/php</tpl>  
			<label style="display:none" id="errTagcontent" class="wrong"></label>       
          </td>
        </tr> 
        <tr>
          <th width="174" height="35" align="right" valign="middle" bgcolor="#F5F9FA"><tpl> $langShopTagSort </tpl>：</th>
          <td width="589" height="35" align="left" bgcolor="#FCFEFE">　
            <input type="text" name="txtTagsort" id="txtTagsort" class="new_input" style="width:50px" value="<tpl> $tag_array.tag_sort </tpl>"/> <tpl> $langShopFormSort </tpl>
		  <label style="display:none" for="txtTagsort" class="wrong" metaDone="true" generated="true"></label></td>
        </tr>                             
        <tr>
          <th height="35" colspan="3" align="left" valign="middle" style=" padding-left:150px">
            <input name="button" type="submit" class="new_anniu" id="submit" value="<tpl> $langCsave </tpl>"/>
			</th>
          </tr>
      </table>
    </form>
  </div>
</div>
<script>
$().ready(function (){
	$("#tag_type1").click(function () {
		$("#td_tagurl").hide();
		$("#td_tagcontent").show();	
	});
	$("#tag_type2").click(function () {
		$("#td_tagurl").show();
		$("#td_tagcontent").hide();			
	});	
});
</script>
</div> <tpl> include file ='../../../html/footer.html' </tpl>
</body>
</html>