Remove some redundant links
Set default variables
This commit is contained in:
parent
c3dea321b9
commit
de3e8f6809
5 changed files with 12 additions and 4 deletions
12
src/item.php
12
src/item.php
|
@ -27,6 +27,18 @@ else {
|
|||
$userid = $_SESSION["userid"];
|
||||
}
|
||||
|
||||
# set default variables
|
||||
$name = "";
|
||||
$description = "";
|
||||
$price = 0.00;
|
||||
$source = "";
|
||||
$url = "";
|
||||
$category = 1;
|
||||
$ranking = 3;
|
||||
$comment = "";
|
||||
$quantity = 1;
|
||||
$image_filename = "";
|
||||
|
||||
// for security, let's make sure that if an itemid was passed in, it belongs
|
||||
// to $userid. all operations on this page should only be performed by
|
||||
// the item's owner.
|
||||
|
|
|
@ -94,7 +94,6 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<h5><a href="categories.php#catform">Add a new category</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -93,7 +93,6 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<h5><a href="families.php">Add a new family</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -94,7 +94,6 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<h5><a href="ranks.php#rankform">Add a new rank</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -120,7 +120,6 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<h5><a href="users.php">Add a new user</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue