Example #1
0
function GET_FILE_PUBLIC_LIST($fatherid = 0, $selid = 0, $layer = 0)
{
    $str = "";
    global $db;
    $query = $db->query("SELECT * FROM " . DB_TABLEPRE . "goods_type where father='{$fatherid}'   ORDER BY id Asc  ");
    if (count($query) > 0) {
        for ($i = 0; $i < $layer; $i++) {
            $str .= "├";
        }
        while ($row = $db->fetch_array($query)) {
            $selstr = $row['id'] == $selid ? 'selected="selected"' : '';
            $htmlstr = '<option value="' . $row['id'] . '"  ' . $selstr . '>' . $str . $row['title'] . '</option>';
            echo $htmlstr;
            GET_FILE_PUBLIC_LIST($row['id'], $selid, $layer + 1, $type);
        }
    }
    return;
}
Example #2
0
	<form name="save" method="post" action="?ac=edit&do=save&fileurl=goods">
	<input type="hidden" name="savetype" value="edit" />
	<input type="hidden" name="id" value="<?php 
echo $blog['id'];
?>
" />
<table class="TableBlock" border="0" width="90%" align="center" style="border-bottom:#4686c6 solid 0px;">
    <tr>
      <td nowrap class="TableContent" width="15%"> 分类:<?php 
get_helps();
?>
</td>
      <td class="TableData">
        <select class="SelectStyle" name="goods_type">
		<?php 
GET_FILE_PUBLIC_LIST(0, $blog['goods_type']);
?>
		</select>	</td>
    </tr>
    <tr>
      <td nowrap class="TableContent"> 编号:<?php 
get_helps();
?>
</td>
      <td class="TableData">
<input name="number" type="text" class="BigInput" id="number" style="width: 300px;" value="<?php 
echo $blog['number'];
?>
" maxlength="100" />      </td>
    </tr>
	<tr>
Example #3
0
get_helps();
?>
</td>
      <td class="TableData">
			<?php 
get_pubuser(2, "keyuser", "", "+选择审批人员", 60, 4);
?>
       	</td>
    </tr>
    <tr>
      <td nowrap class="TableData"> 选择上级栏目:</td>
      <td class="TableData">
<select class="BigStatic" name="father">
										<option value="0" >顶级栏目</option>
										<?php 
GET_FILE_PUBLIC_LIST();
?>
										</select>
      </td>
    </tr>
	
	
 
    <tr align="center" class="TableControl">
      <td colspan="2" nowrap height="35">

		<input type="button" value="保存" class="BigButtonBHover" onClick="sendForm();"> 
        
      </td>
    </tr>
  </table>
Example #4
0
?>
</td>
      <td class="TableData">
	  <?php 
get_pubuser(2, "keyuser", $workdate[keyuser], "+选择审批人员", 60, 4);
?>
		
       	</td>
    </tr>
    <tr>
      <td nowrap class="TableData"> 选择上级栏目:</td>
      <td class="TableData">
<select class="BigStatic" name="father">
										<option value="0" >顶级栏目</option>
										<?php 
GET_FILE_PUBLIC_LIST(0, $workdate[father]);
?>
										</select>
      </td>
    </tr>
	
	
 
    <tr align="center" class="TableControl">
      <td colspan="2" nowrap height="35">

		<input type="button" value="保存" class="BigButtonBHover" onClick="sendForm();"> 
        
      </td>
    </tr>
  </table>
Example #5
0
	
	<a href="admin.php?ac=index&fileurl=<?php 
echo $fileurl;
?>
" style="font-size:12px;">返回列表页</a><img src="template/default/content/images/f_ico.png" align="absmiddle"></span>
    </td>
  </tr>
</table>
<form name="save" method="post" action="">
<table class="TableBlock" border="0" width="90%" align="center">

    <tr>
      <td nowrap class="TableContent" width="15%"> 资产类别:</td>
      <td class="TableData">
        <?php 
echo GET_FILE_PUBLIC_LIST($blog['property_type']);
?>
	</td>
    </tr>
    <tr>
      <td nowrap class="TableContent"> 资产编号:</td>
      <td class="TableData">  <?php 
echo $blog['number'];
?>
   </td>
    </tr>
	<tr>
      <td nowrap class="TableContent"> 资产名称:</td>
      <td class="TableData">
<?php 
echo $blog['name'];