{#include file="sys/admin_header.htm"#}
<style type="text/css">
  .company_bannerimg{width:1060px;min-height:20px;overflow:hidden;}
  .company_bannerimg .box{float:left;width:200px;height:110px;margin:0px 10px 10px 0px;}
  .company_bannerimg .box img{width:200px;height:100px;border:0px;}
</style>
<script src="{#$QISHI.site_dir#}data/cache_classify.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
$(document).ready(function()
{
  if($("#tpl_id").attr("checked")==true){
    $(".hidden_tpl").show();
  }else{
    $(".hidden_tpl").hide();
  }
  $("#tpl_id").click(function(){
    $(".t1").attr("checked",false);
    $(".hidden_tpl").show();
     $("#Form2").hide();
  });
  $(".t1").click(function(){
    $("#tpl_id").attr("checked",false);
    $(".hidden_tpl").hide();
    if($(this).val()=="charge"){
      $("#Form2").show();
    }else{
      $("#Form2").hide();
    }
  });
  if($("#t2").attr("checked")==true){
    $("#Form2").show();
  }else{
    $("#Form2").hide();
  }
});
</script>
<div class="admin_main_nr_dbox">
<div class="pagetit">
	<div class="ptit"> {#$pageheader#}</div>
  <div class="clear"></div>
</div>
<div class="toptit">修改企业模板 - <span style="color:#0066CC">{#$company_profile.companyname#}</span></div>
<form id="Form1" name="Form1" method="post" action="?act=edit_company_tpl_save" >
{#$inputtoken#}
<table width="100%" border="0" cellpadding="4" cellspacing="0"   >
<tr>
          <td height="30" align="right"  style=" border-bottom:1px #CCCCCC dashed">所属会员：</td>
          <td  style=" border-bottom:1px #CCCCCC dashed">
{#$company_profile.user.username#}
		 </td>
      </tr>
        <tr>
          <td width="110" height="30" align="right"  style=" border-bottom:1px #CCCCCC dashed"> 当前模板：</td>
          <td  style=" border-bottom:1px #CCCCCC dashed">
		  <label><input name="tpl"  type="radio" class="t1" id="t1" value="default" {#if $company_profile.tpl eq "default"#}checked="checked"{#/if#} />默认模板</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		 <label><input name="tpl"  type="radio" class="t1" id="t2" value="charge" {#if $company_profile.tpl eq "charge"#}checked="checked"{#/if#} />豪华版</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		  <label><input name="tpl_id" id="tpl_id"  type="radio" value="1" {#if $company_profile.tpl!="" && $company_profile.tpl!="default" && $company_profile.tpl!="charge"#}checked="checked"{#/if#} />私人定制版</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      
		 </td>
        </tr>
	<tr class="hidden_tpl">
    <td width="110" height="30" align="right" style=" border-bottom:1px #CCCCCC dashed">
      模板名称：
    </td> 
    <td style=" border-bottom:1px #CCCCCC dashed">
     <input name="tpl_zdy" type="text" class="input_text_100" id="tpl" maxlength="30" value="{#$company_profile.tpl#}" />
    </td>
  </tr>
  <tr>
            <td height="30" align="right"   >&nbsp;</td>
            <td height="30"   >
              <input type="hidden" name="id"  value="{#$company_profile.id#}" />
			  <input type="hidden" name="cuid"  value="{#$company_profile.uid#}" />
			  <input type="hidden" name="url"  value="{#$url#}" />
              <input name="submit3" type="submit" class="admin_submit"    value="保存修改"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
              <input name="submit22" type="button" class="admin_submit"    value="返 回" onclick="window.location.href='{#$url#}'"/>
            </span></td>
          </tr>
  </table>
  </form>
<form id="Form2" name="Form2" method="post" action="?act=add_company_img" enctype="multipart/form-data">
<div class="toptit">企业banner <font color="red">(建议尺寸：841x320)</font></div>
  {#$inputtoken#}
  <table width="100%" border="0" cellpadding="4" cellspacing="0"   >
      <tr>
          <td width="110" height="30" align="right"  style=" border-bottom:1px #CCCCCC dashed">上传banner：</td>
          <td  style=" border-bottom:1px #CCCCCC dashed">
          <input type="file" name="company_banner" style="margin-left:15px;">
          </td>
      </tr>
      <tr>
            <td height="30" align="right"   >&nbsp;</td>
            <td height="30"   >
              <input type="hidden" name="id"  value="{#$company_profile.id#}" />
        <input type="hidden" name="cuid"  value="{#$company_profile.uid#}" />
        <input type="hidden" name="url"  value="{#$url#}" />
              <input name="submit3" type="submit" class="admin_submit"    value="上传"/>
            </span></td>
          </tr>
      {#if $imglist#}
      <tr>
          <td width="110" height="30" align="right"  style=" border-bottom:1px #CCCCCC dashed"></td>
          <td  style=" border-bottom:1px #CCCCCC dashed">
            <div class="company_bannerimg">
              {#foreach from=$imglist item=li#}
             <div class="box"><img src="{#$QISHI.site_dir#}data/companyimg/thumb/{#$li.img#}" width="200" height="100"><a href="?act=del_company_img&id={#$li.id#}">删除</a></div>
             {#/foreach#}
            </div>
          </td>
      </tr>
      {#/if#}
  </table>
</form>
</div>
{#include file="sys/admin_footer.htm"#}
</body>
</html>