Subversion Repositories computer_asset_manager_v1

Rev

Rev 51 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 51 Rev 86
Line 1... Line 1...
1
<?php 
1
<?php 
2
   include_once( '../../header.php' );
2
   include_once( '../../header.php' );
-
 
3
   include_once( './functions.php' );
-
 
4
   include_once( '../../includes/functions.php' );
3
   define( DEBUG, true );
5
   define( DEBUG, true );
4
   if ( isset( $_POST["submit"] ) && $_POST["submit"] == 'Save Modifications' ) {
6
   if ( isset( $_POST["submit"] ) && $_POST["submit"] == 'Save Modifications' ) {
5
      $str = overwriteLicense( $_REQUEST['license_id'], $_REQUEST['client_id'], $_REQUEST['device_id'], $_REQUEST['license_product_id'], $_REQUEST['license'], $_REQUEST['added_date'], $_REQUEST['removed_date'], true  );
7
      $str = overwriteLicense( $_REQUEST['license_id'], $_REQUEST['client_id'], $_REQUEST['device_id'], $_REQUEST['license_product_id'], $_REQUEST['license'], $_REQUEST['added_date'], $_REQUEST['removed_date'], true  );
6
      header('Location: index.html');
8
      header('Location: index.html');
7
   }
9
   }
Line 37... Line 39...
37
         <table border='1'>
39
         <table border='1'>
38
            <tr>
40
            <tr>
39
               <td>Client</td>
41
               <td>Client</td>
40
               <td>
42
               <td>
41
                  <select name='client_id'>
43
                  <select name='client_id'>
42
                  <?php print queryToSelect( 'select client_id,name from client where removed_date is null order by name', $adding ? '' : $currentLicense['client_id'] ); ?>
44
                  <?php print queryToSelect( getClients() , $adding ? '' : $currentLicense['client_id'] ); ?>
43
                  </select>
45
                  </select>
44
               </td>
46
               </td>
45
            </tr>
47
            </tr>
46
            <tr>
48
            <tr>
47
               <td>Machine</td>
49
               <td>Machine</td>
Line 51... Line 53...
51
                  if ( $adding || ! $currentLicense['device_id'] )
53
                  if ( $adding || ! $currentLicense['device_id'] )
52
                     print "<option value=-1 selected>Available</option>\n";
54
                     print "<option value=-1 selected>Available</option>\n";
53
                  else {
55
                  else {
54
                     print "<option value=-1>Available</option>\n";
56
                     print "<option value=-1>Available</option>\n";
55
                  }
57
                  }
56
                  print queryToSelect( "select device.device_id,device.name from device where device_type_id in (select device_type_id from device_type where show_as_system = 'Y') order by device.name", $adding ? '' : $currentLicense['device_id']); ?>
58
                  print queryToSelect( getAllDevices() , $adding ? '' : $currentLicense['device_id']); ?>
57
                  </select>
59
                  </select>
58
               </td>
60
               </td>
59
            </tr>
61
            </tr>
60
            <tr>
62
            <tr>
61
               <td>Product</td>
63
               <td>Product</td>