| 
      
        | 
         
            |  |  | ' . zen_image_button('button_reset.gif', IMAGE_RESET) . '  ';
  }
  echo HEADING_TITLE_SEARCH_DETAIL . ' ' . zen_draw_input_field('search') . zen_hide_session_id();
  if (isset($_GET['search']) && zen_not_null($_GET['search'])) {
    $keywords = zen_db_input(zen_db_prepare_input($_GET['search']));
    echo ' ' . TEXT_INFO_SEARCH_DETAIL_FILTER . $keywords;
  }
?>
 |  |  
        |  |  
        | 
          
            | '' . TEXT_INFO_HEADING_DELETE_PRODUCTS_DOWNLOAD . '');
      $contents = array('form' => zen_draw_form('products_downloads_delete', FILENAME_DOWNLOADS_MANAGER, zen_get_all_get_params(array('padID', 'action')) . 'padID=' . $padInfo->products_attributes_id . '&action=deleteconfirm' . '&page=' . $_GET['page']));
      $contents[] = array('text' => TEXT_DELETE_INTRO . '
              
                Execute($products_downloads_query_raw);
  while (!$products_downloads_query->EOF) {
    if ((!isset($_GET['padID']) || (isset($_GET['padID']) && ($_GET['padID'] == $products_downloads_query->fields['products_attributes_id']))) && !isset($padInfo)) {
      $padInfo_array = $products_downloads_query->fields;
      $padInfo = new objectInfo($padInfo_array);
    }
// Moved to /admin/includes/configure.php
  if (!defined('DIR_FS_DOWNLOAD')) define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
  $filename_is_missing='';
  if ( !file_exists(DIR_FS_DOWNLOAD . $products_downloads_query->fields['products_attributes_filename']) ) {
    $filename_is_missing = zen_image(DIR_WS_IMAGES . 'icon_status_red.gif');
  } else {
    $filename_is_missing = zen_image(DIR_WS_IMAGES . 'icon_status_green.gif');
  }
?>
fields['products_attributes_id'] == $padInfo->products_attributes_id)) {
        echo '|  |  |  |  |  |  |  |  |  |  |  ' . "\n";
      } else {
        echo '               ' . "\n";
      }
?>
                MoveNext();
  }
?>| fields['products_attributes_id']; ?> | fields['products_id']; ?> | fields['products_name']; ?> | fields['products_model']; ?> | fields['options_id']); ?> | fields['options_values_id']); ?> | fields['products_attributes_filename']; ?> | fields['products_attributes_maxdays']; ?> | fields['products_attributes_maxcount']; ?> | fields['products_attributes_id'] == $padInfo->products_attributes_id)) { echo zen_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', ''); } else { echo '' . zen_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . ''; } ?> |  
                | 
                  
                    | display_count($products_downloads_query_numrows, MAX_DISPLAY_SEARCH_RESULTS_DOWNLOADS_MANAGER, $_GET['page'], TEXT_DISPLAY_NUMBER_OF_PRODUCTS_DOWNLOADS_MANAGER); ?> | display_links($products_downloads_query_numrows, MAX_DISPLAY_SEARCH_RESULTS_DOWNLOADS_MANAGER, MAX_DISPLAY_PAGE_LINKS, $_GET['page']); ?> |  
                    | ' . zen_image_button('button_reset.gif', IMAGE_RESET) . ''; ?> |  |  | 
 ' . $padInfo->products_name . ' - ' . $padInfo->products_attributes_filename . '');
      $contents[] = array('align' => 'center', 'text' => '
 ' . zen_image_submit('button_delete.gif', IMAGE_DELETE) . ' ' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '');
      break;
*/
    case 'edit':
      $heading[] = array('text' => '' . TEXT_INFO_HEADING_EDIT_PRODUCTS_DOWNLOAD . '');
      $contents = array('form' => zen_draw_form('products_downloads_edit', FILENAME_DOWNLOADS_MANAGER, zen_get_all_get_params(array('padID', 'action')) . 'padID=' . $padInfo->products_attributes_id . '&action=save' . '&page=' . $_GET['page']));
      $contents[] = array('text' => '' . TEXT_PRODUCTS_NAME . $padInfo->products_name . '
 ' . TEXT_PRODUCTS_MODEL . $padInfo->products_model . '');
      $contents[] = array('text' => '
 ' . TEXT_INFO_EDIT_INTRO);
      $contents[] = array('text' => '
 ' . TEXT_INFO_FILENAME . '
 ' . zen_draw_input_field('products_attributes_filename', $padInfo->products_attributes_filename));
      $contents[] = array('text' => '
 ' . TEXT_INFO_MAX_DAYS . '
 ' . zen_draw_input_field('products_attributes_maxdays', $padInfo->products_attributes_maxdays));
      $contents[] = array('text' => '
 ' . TEXT_INFO_MAX_COUNT . '
 ' . zen_draw_input_field('products_attributes_maxcount', $padInfo->products_attributes_maxcount));
      $contents[] = array('align' => 'center', 'text' => '
 ' . zen_image_submit('button_update.gif', IMAGE_UPDATE) . ' ' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '');
      break;
    default:
      if (isset($padInfo) && is_object($padInfo)) {
        $heading[] = array('text' => '' . $padInfo->products_attributes_id . ' ' . $padInfo->products_attributes_filename . '');
        $contents[] = array('align' => 'center', 'text' =>
          '' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '' .
          '' . zen_image_button('button_edit_attribs.gif', IMAGE_EDIT_ATTRIBUTES) . ''
          );
        $contents[] = array('text' => '
 ' . TEXT_PRODUCTS_NAME . $padInfo->products_name);
        $contents[] = array('text' => TEXT_PRODUCTS_MODEL . $padInfo->products_model);
        $contents[] = array('text' => TEXT_INFO_FILENAME . $padInfo->products_attributes_filename);
        $contents[] = array('text' => TEXT_INFO_MAX_DAYS . $padInfo->products_attributes_maxdays);
        $contents[] = array('text' => TEXT_INFO_MAX_COUNT . $padInfo->products_attributes_maxcount);
      }
      break;
  }
  if ( (zen_not_null($heading)) && (zen_not_null($contents)) ) {
    echo '
 ' . "\n";
    $box = new box;
    echo $box->infoBox($heading, $contents);
    echo '' . "\n";
  }
?> |  |  |