Beispiel #1
0
/**
 * [get_tree_class 输出树状]
 * @param  integer $fid   [description]
 * @param  integer $num   [description]
 * @param  [type]  $array [description]
 * @param  string  $bid   [description]
 * @return [type]         [description]
 */
function get_tree_class($fid = 0, $num = 0, $array, $bid = '')
{
    for ($i = 0; $i < count($array); $i++) {
        if ($array[$i][1] == $fid) {
            if ($bid == $array[$i][0]) {
                echo "<option value=" . $array[$i][0] . " selected='selected'>";
            } else {
                echo "<option value=" . $array[$i][0] . ">";
            }
            echo str_repeat("&nbsp;&nbsp;", $num) . "|-" . $array[$i][2] . "</option>";
            get_tree_class($array[$i][0], $num + 2, $array);
        }
    }
}
Beispiel #2
0
                    <tr>
                      <td width="90">QQ:</td>
                      <td>
                        <input name="kq_qq" size="40" class="inpMain" id="kq_qq" type="text"></td>
                    </tr>
                    <tr>
                      <td width="90">微信:</td>
                      <td>
                        <input name="kq_weixin" size="40" class="inpMain" id="kq_weixin" type="text"></td>
                    </tr>
                    <tr>
                      <td width="90">项目分类:</td>
                      <td>
                      <select name="kq_lmid" id="kq_fid">
                        <?php 
get_tree_class(0, 0, get_class_array2("where id=1"));
?>
                      </select>
                      </td>
                    </tr>
                    <tr>
                      <td width="80">封面图片:</td>
                      <td>
                        <input name="kq_picurl" size="40" class="inpMain" id="kq_picurl" type="text">
                        <input name="submit" class="btn" onclick="updatepic('kq_picurl','ylpic','','','710','410',1)" value="上传图片" type="button">
                      </td>
                    </tr>
                    <tr>
                      <td width="80">封面预览:</td>
                      <td id="ylpic"></td>
                    </tr>
Beispiel #3
0
                <td colspan="2">
                  是
                  <input name="kq_islast" type="radio" id="radio3" value="1"  />
                  否
                  <input type="radio" name="kq_islast" id="radio4" value="0" checked="checked" />
                </td>
                <td width="497"><span class="red">否为最终的分类,不能再有子类。</span></td>
              </tr>
              <tr>
                <td align="right">所属目录:</td>
                <td colspan="2">

                  <select name="kq_fid" id="kq_fid">
                    <option value="0">根城市</option>
                    <?php 
get_tree_class(0, 0, get_city_array());
?>
                  </select>
                </td>
                 <td></td>
              </tr>

            </tbody>
          </table>
        </div>

      </div>
      <!--kq-->
      <table class="tableBasic" border="0" cellpadding="8" cellspacing="0" width="100%">
        <tbody>
          <tr>
Beispiel #4
0
                    <img src="images/nopic.gif" height="100"  />
                  </td>
                </tr>
                <tr>
                  <td align="right">
                    <?php 
echo $pagename;
?>
位置:</td>
                  <td colspan="2">
                    <label for="a_position"></label>
                    <select name="kq_position" id="a_position">
                      <?php 
if (ADVLANMU) {
    echo '<option value="index">首页</option>';
    get_tree_class(0, 0, get_class_array2());
} else {
    $listpostion = array('1' => '首页', '2' => '列表页', '3' => '内容页', '4' => '头部', '5' => '底部');
    foreach ($listpostion as $key => $value) {
        echo '<option value="' . $key . '">' . $value . '</option>';
    }
}
?>
                    </select>
                  </td>
                </tr>
              </tbody>
            </table>
            <table class="tableBasic" border="0" cellpadding="8" cellspacing="0" width="100%">
              <tbody>
                <tr>
Beispiel #5
0
" id="kq_qq" type="text"></td>
                    </tr>
                    <tr>
                      <td width="90">微信:</td>
                      <td>
                        <input name="kq_weixin" size="40" class="inpMain" value="<?php 
echo $show_r['kq_weixin'];
?>
" id="kq_weixin" type="text"></td>
                    </tr>
                    <tr>
                      <td width="80">项目分类:</td>
                      <td>
                      <select name="kq_lmid" id="kq_fid">
                        <?php 
get_tree_class(0, 0, get_class_array2("where  id=1"), $show_r['kq_lmid']);
?>
                      </select>
                      </td>
                    </tr>
                    <tr>
                      <td width="80">封面图片:</td>
                      <td>
                        <input name="kq_picurl" size="40" value="<?php 
echo $show_r['kq_picurl'];
?>
" class="inpMain" id="kq_picurl" type="text">
                        <input name="submit" class="btn" onclick="updatepic('kq_picurl','ylpic','','','710','410',1)" value="上传图片" type="button">
                      </td>
                    </tr>
                    <tr>