Example #1
0
<?php

//var_dump($obj);
//print '<hr>';
// var_dump($model);
?>
<form method="post" action="">
<input type="hidden" name="Id" value="<?php 
print $model->Id;
?>
"
Name<br>
<input type="text" name="Name" value="<?php 
print $model->Name;
?>
"/><br>
<br>
Category<br>
<select name="CategoryId">
<?php 
include_once 'Model/category.php';
$cnt = new Category();
$cnt->Id = $model->CategoryId;
print $cnt->SelectList();
?>
</select><br>
<br>
<input type="submit" name="btnSubmit" value="Submit"/>
</form>
Example #2
0
?>
</select><br>
<br>
DateTime<br>
<input type="text" name="Datetime" id="Date" value="<?php 
print $model->Datetime;
?>
"/><br>
<br>
Category<br>
<select name="CategoryId">
<?php 
include_once 'Model/category.php';
$ctg = new Category();
$ctg->Id = $model->CategoryId;
print $ctg->SelectList();
?>
</select><br>
<br>Image<br />
<input type="file" name="Image" />
<br />
<br />

News<br>
<textarea name="News" cols="120" rows="30"><?php 
print $model->News;
?>
</textarea><br>
<br>

<input type="submit" name="btnSubmit" value="Submit"/>