コード例 #1
0
        kill_item_form();
        break;
    case 'killitemsub':
        kill_item_submit();
        break;
    case 'killitemtype':
        kill_itemtype_form();
        break;
    case 'killitemtypesub':
        kill_itemtype_submit();
        break;
    case 'edititem':
        edit_item_begin();
        break;
    case 'edititemform':
        edit_item_form();
        break;
    case 'edititemsub':
        edit_item_sub();
        break;
    case 'newitemtype':
        newitemtype();
        break;
    default:
        print "Error: This script requires an action.";
        break;
}
function new_item_form()
{
    global $db, $ir, $c;
    if ($ir['user_level'] > 2) {
コード例 #2
0
ファイル: index.php プロジェクト: evanhsu/siskiyourappellers
         $get_inv_result = get_inv();
         display_inv($get_inv_result, $php_self);
         break;
     case "check_out_bulk":
         // $_GET['id'] is the id of an item that already has a 'checked_out_to' value assigned.
         // This function will increment the QTY of this item, and decrement the QTY of the parent item (who's ID is stored in the 'item_source' field
         check_out_bulk($_GET['id']);
         $get_inv_result = get_inv();
         display_inv($get_inv_result, $php_self);
         break;
     case "edit_item":
         if ($_POST['status'] == "update" && edit_item()) {
             $get_inv_result = get_inv();
             display_inv($get_inv_result, $php_self);
         } else {
             edit_item_form($_GET['id'], $php_self);
         }
         break;
     case "personal_gear_list":
         personal_gear_list($_GET['id'], $php_self);
         break;
     case "restock_list":
         $restock_result = get_restock_list();
         display_inv($restock_result, $php_self);
         break;
     case "get_inv":
     default:
         $get_inv_result = get_inv();
         display_inv($get_inv_result, $php_self);
         break;
 }