Location: PHPKode > scripts > Ramui web hosting directory script > Ramui web hosting directory script/gb/admin/include/editpost.php
<?php
/*
Copyright (c) 2011 http://ramui.com. All right reserved.
This product is protected by copyright and distributed under licenses restricting copying, distribution. Permission is granted to the public to download and use this script provided that this Notice and any statement of authorship are reproduced in every page on all copies of the script.
*/
$hmenu='<table id="menu"><tr><td width="100px"><a href="index.php?qur=2M">Post list</a></td><td width="100px"><a href="javascript:fwPublish()"><span id="fw_block">'.(($row['publish']=='Y')? 'Block' : 'Publish').'</span></a></td>';
$hmenu.='<td width="100px"><a href="javascript:fwLock()"><span id="fw_lock">'.(($row['locked']=='Y')? 'Unlock' : 'Lock').'</span></a></td>';
$hmenu.='<td width="100px"><a href="javascript:fwDelete()">Delete</a></td>';
$hmenu.=((empty($row['c']))? '<td width="100px">Comments('.$row['c'].')</td>':'<td width="100px"><a href="index.php?qur=9M6M1M0M'.$post_id.'M0M0">Comments('.$row['c'].')</a></td>');
$hmenu.='<td style="border-right:none;"></td></tr></table>';
echo $hmenu;
?>
<div style="float:right;clear:both;color:red;margin:10px 30px;"><img src="images/mandatory.gif" /> Fields are mandatory</div>
<form name="frmComment" style="width:800px;margin:10px 0;padding:10px;font-size:11px;" onsubmit="return false">
<table id="fw_addcomment" style="width:100%;">
<tr><td colspan="2" id="feedback"></td></tr>
<tr><td style="padding:15px 5px;width:100px;"><b>User:</b></td><td style="padding: 5px 0;"><?php echo '<a href="index.php?qur=3M7M'.$row['uid'].'">'.$row['user'].'</a>';?></td></tr>
<tr><td style="padding: 5px 0;">
<img src="images/mandatory.gif" />Title:</td><td style="padding: 5px 0;">
<input type="text" class="text" style="width:665px;" name="title" id="title" size="20" value="<?php echo $row['title'];?>" /></td></tr>
<tr><td style="padding: 5px 0;">
<img src="images/mandatory.gif" />URL:</td><td style="padding: 5px 0;"><input type="text" class="text" style="width:665px;" name="url" id="url" size="20" value="<?php echo $row['url'];?>" /></td></tr>
<tr><td style="padding: 5px 0;">
Affiliate link:</td><td style="padding: 5px 0;"><input type="text" class="text" style="width:665px;" name="afflink" id="afflink" size="20" value="<?php echo $row['afflink'];?>" /></td></tr>
<tr><td style="padding: 5px 0;vertical-align:middle;">Description:</td><td style="padding: 5px 0;">
<textarea class="text" style="width:665px; height:60px;" name="description" id="description"><?php echo $row['description'];?></textarea></td></tr>
<tr><td style="vertical-align:middle;"><img src="images/mandatory.gif" />Detail:<br />[ <a href="javascript:fwOpenBBCodeEditor('<?php echo '1M3M1M'.$post_id.'&editor=content&max='.$max;?>')">Open editor</a> ]</td>
<td style="padding: 5px 0;"><textarea class="text" style="width:665px; height:260px;" name="content" id="content"><?php echo $row['content'];?></textarea></td></tr>
<tr><td style="padding: 5px 0 20px;">
Tags:</td><td style="padding: 5px 0 20px;">
<input type="text" class="text" style="width:665px;" name="tags" id="tags" size="20"></td></tr>
<tr><td colspan="2" style="border:1px solid #a7beb7;background:#e0f0e8;">
<table id="mindata" cellspacing="4">
<tr><td style="vertical-align:middle;padding-left:5px;width:60px;"><u>Minimum</u>:</td><td style="padding:0;">BW in Ghz<br />
<input type="text" class="txtsmall" name="bw" id="bw" value="<?php echo $row['bw'];?>" size="20" /></td><td>Price in USD
<br /><input type="text" class="txtsmall" name="usd" id="usd" value="<?php echo $row['usd'];?>" size="20" /> /year</td><td>Space in GB
<br /><input type="text" class="txtsmall" name="space" id="space" value="<?php echo $row['space'];?>" size="20" /></td><td>Uptime
<br /><input type="text" class="txtsmall" name="uptime" id="uptime" value="<?php echo $row['uptime'];?>" size="20" /> %</td>
<td>Domain / account<br /><input type="text" class="txtsmall" name="noofdomain" id="noofdomain" value="<?php echo $row['noofdomain'];?>" size="20" /></td>
</tr>
<tr><td>&nbsp;</td>
<td colspan="2" style="padding:10px 0 0 0;"><input style="width:15px; margin:0;" type="checkbox" name="freedomain"<?php if($row['freedomain']){echo ' checked';}?> /> Include free domain</td>
<td colspan="3" style="padding:10px 0 0 10px;">Server: <select name="server" id="server" class="text" style="width:120px;height:18px;font-size:10px;color:#606060;">
<?php
$arr=array('- - Select - -','Linux','Windows','Solaris','FreeBSD','Mac OSX');
for($i=0; $i<6; $i++){echo '<option value="'.$i.(($row['server']==$i)? '" selected':'"').'>'.$arr[$i].'</option>';}
?>
</select></td></tr>
</table>
</td></tr>
<tr><td colspan="2" style="padding:25px 0 0 20px;">
<input type="reset" class="fw_button" value="Reset" name="B1" onclick="resetForm()">&nbsp;&nbsp;<input type="button" class="fw_button" value="Submit" onClick="fw_post(<?php echo $submit;?>);">
&nbsp;&nbsp;<input style="width:15px; border:none; margin:0;" type="checkbox" name="fw_parseurls" id="fw_parseurls"<?php if($row['autolink']){echo ' checked';}?> /> automatically parse URLs</td></tr>
</table></td></tr>
</table></form>
</div>
Return current item: Ramui web hosting directory script