最土360API增加feature选项

2012-03-24 12:13 来源:www.chinab4c.com 作者:ecshop专家

     最土360API增加feature选项,这个是最土基于360API增加的最新选项,但是我们这个字段很难控制,目前默认的最土没有在开发的情况下,是不能直接设置这个字段的。我们为了让最土增加强大的支持360API的feature,我们必须对最土二次开发才行.

   1:最土模板manage_system_index.html增加以下选项.

    <div class="wholetip clear"><h3>2、杂项设置</h3></div>
       <div class="field">
                            <label>下拉选项1</label>
                            <input type="text" size="30" name="system[sel1]" class="f-input f-hint" value="{$INI['system']['sel1']}"/><span class="inputtip">逗号隔开</span>
      </div>
      <div class="field">
                            <label>下拉选项2</label>
                            <input type="text" size="30" name="system[sel2]" class="f-input f-hint" value="{$INI['system']['sel2']}"/><span class="inputtip">逗号隔开</span>
      </div>

   2:最土模板manage_team_edit.html增加以下代码

   <div class="field" id="field_limit">
      <label>Feature</label>
      <select name="sel1" class="f-input" style="width:160px;">${Utility::Option($sel1, $team['sel1'])}</select>
      <select name="sel2" class="f-input" style="width:160px;">${Utility::Option($sel2, $team['sel2'])}</select>
      <input type="text" size="30" name="sel3" id="team-create-sel3" class="f-input" value="${htmlspecialchars($team['sel3'])}" style="width:400px;" />
     </div>

    3:最土商品编辑信息edit.php

     if($INI['system']['sel1']){
 
 $sel1 = explode(",",$INI['system']['sel1']);

}

if($INI['system']['sel2']){
 
 $sel2 = explode(",",$INI['system']['sel2']);

}

  以及SQL里面增加这段代码,'sel1','sel2','sel3',

  以上就完成了最土360API增加feature选项

  来源:http://www.chinab4c.com