Bloks Add.html:
<BR>
<TABLE class="block" border="1" cellspacing="0">
<form enctype="multipart/form-data" action="" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="1000000">
<tr><th colspan="2" align="center">Add new: </th></tr>
<tr>
<td align="center">
title:
<BR><INPUT type="text" name="new_text_title" size="70"></TEXTAREA>
<BR>intro:
<BR><TEXTAREA cols="50" rows="5" name="new_text"></TEXTAREA>
<BR>details:<BR>
<TEXTAREA cols="50" rows="10" name="new_text_detail"></TEXTAREA>
<BR>
Sort order:
<SELECT name="new_position">
<?for($i=1;$i<$count+2;$i++){?>
<option value="<?=$i?>" <?if($i>$count)echo "selected";?>><?=$i?></OPTION>
<?}?>
</SELECT>
Visible:
<INPUT type="checkbox" name="new_visible" checked>
<TABLE border="1" cellspacing="0">
<tr>
<td>Image preview:</td>
<td><INPUT name="img_file" size="30" type="file" ></td>
</tr>
<tr>
<td>Image popup:</td>
<td><INPUT name="img_file_popup" size="30" type="file" ></td>
</tr>
<tr>
<td>Image align:</td>
<td><SELECT name="new_image_position">
<option value="bottom">bottom</OPTION>
<option value="left">left</OPTION>
<option value="middle">middle</OPTION>
<option value="right">right</OPTION>
<option value="top">top</OPTION>
</SELECT></td>
</tr>
<tr>
<td>Image visible:</td>
<td><input type="checkbox" name="img_visible" checked></td>
</tr>
</table>
</td>
<td valign="top">
</td>
</tr>
<tr><td colspan="2" align="center"><INPUT type="submit" value="Submit new"></td></tr>
<INPUT type="hidden" name="action" value="block_add">
<INPUT type="hidden" name="page_id" value="<?=$cats->page_sub?>">
</table>
Other Content Management Scripts: