예제 #1
0
파일: lotdelete.php 프로젝트: piiskop/pstk
 * lotdelete.php
 *
 * Delete for the Lots 
 *
 * @version  1.2 2011-02-03
 * @package  Smithside Auctions
 * @copyright  Copyright (c) 2011 Smithside Auctions
 * @license  GNU General Public License
 * @since    Since Release 1.0
 */
// Save the category so you return to the right lots page
$cat_id_in = (int) $_GET['cat_id'];
// Get the lot id. If it doesn't exist or is 0, then this is a new lot
$id = (int) $_GET['lot_id'];
// Get the existing information for an existing item
$item = Lot::getLot($id);
// get the Category name for the lot
$cat_name = Category::getCategory($item->getCat_id())->getCat_name();
?>
<h1>Lot Delete</h1>

<form action="index.php?content=lots&cat_id=<?php 
echo $cat_id_in;
?>
&sidebar=catnav" 
  method="post" name="maint" id="maint">

    <fieldset class="maintform">
      <legend><?php 
echo 'ID: ' . $id;
?>