View Single Post
ישן 23-07-08, 04:01   # 6
Megnum
חבר וותיק
 
מיני פרופיל
תאריך הצטרפות: May 2007
מיקום: אשד
הודעות: 1,308

Megnum לא מחובר  

החלק הרלוונטי:

PHP קוד:

   
case 'articles?edit=$id':
  
//From Edit
   
echo "<div class='space'><div class='add' ><img src='images/add.gif' alt='' /><a href='?page=articles?new'>הוסף כתבה</a></div><div class='f_img'><img src='images/p2_link.gif' alt='' /></div><div class='f_l'>&nbsp;<a href='?page=articles'>מערכת כתבות</a>  |  עריכת כתבה</div></div>\n";
   echo 
"<div class='hr'></div>\n";

   
$show_article_id ="SELECT * FROM `webadmin_articles` WHERE `id` =$id";
   
$ok_show_id=mysql_query($show_article_id) or die(mysql_error());

   while (
$row_news_id=mysql_fetch_array($ok_show_id) or die(mysql_error())) {
   echo 
"<form method='post' action='?page=articles?edit=ok'>\n";
   echo 
"<table class='table' border='0' width='800px'>\n";
   echo 
"<tr><td width='200px'>שם הכתבה:</td><td><input class='input_type' type='text' name='name' value='$row_news_id[name]'/></td></tr>\n";
   echo 
"<tr><td width='200px'>שם המפרסם:</td><td><input class='input_type' type='text' name='author' value='$row_news_id[author]'/></td></tr>\n";
   echo 
"<tr><td width='200px'>תאריך פרסום:</td><td><input class='input_type' type='text' name='date' value='$row_news_id[date]'/>&nbsp;(יום/חודש/שנה לדוגמא: 22/02/2008)</td></tr>\n";
   echo 
"<tr><td width='200px' valign='top'>תיאור:</td><td width='800px'><textarea class='r' name='description'>$row_news_id[description]</textarea></td></tr>\n";
   echo 
"<tr><td width='200px' valign='top'>תוכן:</td><td width='800px'><textarea class='m' name='content'>$row_news_id[content]</textarea></td></tr>\n";
   echo 
"<tr><td>אפשרויות:</td><td><input class='style_submit' type='submit' value='עדכן כתבה' /><input class='style_submit' type='reset' value='אתחל טופס' /></td></tr>\n";
   echo 
"</table>";
   echo 
"</form>\n";
   }  
   
   break; 
תודה על הרצון לעזור!
  Reply With Quote