Subversion Repositories computer_asset_manager_v1

Rev

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

Rev 63 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' );
3
   include_once( './functions.php' );
-
 
4
   include_once( '../../includes/functions.php' );
4
 
5
 
5
 
6
 
6
   $expectedValues = array( 'file_id','device_id','site_id','client_id','file_mime_type_id','added_date', 'removed_date', 'name', 'description', 'name_on_disk' );
7
   $expectedValues = array( 'file_id','device_id','site_id','client_id','file_mime_type_id','added_date', 'removed_date', 'name', 'description', 'name_on_disk' );
7
   foreach ( $expectedValues as $field )
8
   foreach ( $expectedValues as $field )
8
      $oldValues[$field] = '';
9
      $oldValues[$field] = '';
Line 124... Line 125...
124
             Attach To Device
125
             Attach To Device
125
          </td>
126
          </td>
126
          <td>
127
          <td>
127
             <select name='device_id' >
128
             <select name='device_id' >
128
                <option value='0'>------------</option>
129
                <option value='0'>------------</option>
129
                <?php print queryToSelect('select device_id, Device from view_current_client_systems order by Device', $oldValues['device_id'] ); ?>
130
                <?php print queryToSelect( getAllDevices(), $oldValues['device_id'] ); ?>
130
             </select>
131
             </select>
131
          </td>
132
          </td>
132
       </tr>
133
       </tr>
133
       <tr>
134
       <tr>
134
          <td>
135
          <td>
135
             Attach To Site
136
             Attach To Site
136
          </td>
137
          </td>
137
          <td>
138
          <td>
138
             <select name='site_id' >
139
             <select name='site_id' >
139
                <option value='0'>------------</option>
140
                <option value='0'>------------</option>
140
                <?php print queryToSelect('select site_id, name from view_current_client_site order by name', $oldValues['site_id'] ); ?>
141
                <?php print queryToSelect( getSites(), $oldValues['site_id'] ); ?>
141
             </select>
142
             </select>
142
          </td>
143
          </td>
143
       </tr>
144
       </tr>
144
       <tr>
145
       <tr>
145
          <td>
146
          <td>
146
             Attach To Client
147
             Attach To Client
147
          </td>
148
          </td>
148
          <td>
149
          <td>
149
             <select name='client_id' >
150
             <select name='client_id' >
150
                <option value='0'>------------</option>
151
                <option value='0'>------------</option>
151
                <?php print queryToSelect('select client_id, name from view_current_client order by name', $oldValues['client_id'] ); ?>
152
                <?php print queryToSelect(getClients(), $oldValues['client_id'] ); ?>
152
             </select>
153
             </select>
153
          </td>
154
          </td>
154
       </tr>
155
       </tr>
155
       <tr>
156
       <tr>
156
          <td>
157
          <td>