Location: PHPKode > projects > Quick.Cart - free and simple to use shopping cart script > templates/admin/products.tpl
<!-- BEGIN LIST_TITLE -->
<h1><img src="$config[dir_templates]admin/img/ico_products.gif" alt="$lang['Products']" />$lang['Products']<a href="$config['manual_link']instruction#9" title="$lang[Manual]" target="_blank"></a></h1>
<form action="" method="get" id="search">
  <fieldset>
    <input type="hidden" name="p" value="$p" />
    <input type="hidden" name="sSort" value="$sSort" />
    <input type="text" name="sPhrase" value="$sPhrase" class="input" size="50" />
    <select name="iPageSearch"><option value="">$lang['All_pages']</option>$sPagesSelect</select>
    <input type="submit" value="$lang['search'] &raquo;" />
  </fieldset>
</form>
<!-- END LIST_TITLE -->

<!-- BEGIN PRODUCTS -->
<script type="text/javascript">
<!--
var aDelUrl = Array( '?p=$aActions[f]-delete&iProduct=', '?p=$aActions[f]-delete&bWithoutFiles=true&iProduct=' );
var bDeleteUnusedFiles = "$config['delete_unused_files']";
var iMaxNameLength = $config['max_product_name_in_list'];
AddOnload( checkProductsNamesWidth );
//-->
</script>
<form action="?p=$p&amp;sPhrase=$sPhrase&amp;sSort=$sSort" method="post">
  <fieldset>
    <table id="list" class="products" cellspacing="1">
      <thead>
        <tr class="save">
          <td colspan="6" class="pages">
            $lang[Pages]: <ul>$aData[sPages]</ul>
          </td>
          <th colspan="1">
            <input type="submit" name="sOption" value="$lang['save'] &raquo;" />
          </th>
        </tr>
        <tr>
          <td class="id"><a href="?p=$p&amp;sSort=id&amp;sPhrase=$sPhrase&amp;iPageSearch=$iPageSearch">$lang['Id']</a></td>
          <td class="name"><a href="?p=$p&amp;sSort=name&amp;sPhrase=$sPhrase&amp;iPageSearch=$iPageSearch">$lang['Name']</a></td>
          <td class="pages">$lang[Pages]</td>
          <td class="price"><a href="?p=$p&amp;sSort=price&amp;sPhrase=$sPhrase&amp;iPageSearch=$iPageSearch">$lang[Price]</a> [$config[currency_symbol]]</td>
          <td class="position"><a href="?p=$p&amp;sSort=position&amp;sPhrase=$sPhrase&amp;iPageSearch=$iPageSearch">$lang['Position']</a></td>
          <td class="status"><a href="?p=$p&amp;sSort=status&amp;sPhrase=$sPhrase&amp;iPageSearch=$iPageSearch">$lang['Status']</a></td>
          <td class="options">&nbsp;</td>
        </tr>
      </thead>
      <tfoot>
        <tr class="save">
          <td colspan="6" class="pages">
            $lang[Pages]: <ul>$aData[sPages]</ul>
          </td>
          <th colspan="1">
            <input type="submit" name="sOption" value="$lang['save'] &raquo;" />
          </th>
        </tr>
      </tfoot>
      <tbody><!-- START LIST -->
        <tr class="l$aData[iStyle]" onmouseover="showPreviewButton( this )" onmouseout="hidePreviewButton( this )">
          <td class="id">
            $aData[iProduct]
          </td>
          <td class="name">
            <a href="?p=$aActions[f]-form&amp;iProduct=$aData[iProduct]">$aData[sName]</a><a href="./$aData[sLinkName]" target="_blank" class="preview"><img src="$config[dir_templates]admin/img/ico_prev.gif" alt="$lang['preview']" title="$lang['preview']" /></a>
          </td>
          <td class="pages">
            $aData[sPages]
          </td>
          <td class="price">
            <input type="text" name="aPrices[$aData[iProduct]]" value="$aData[mPrice]" class="inputr" size="8" />
          </td>
          <td class="position">
            <input type="text" name="aPositions[$aData[iProduct]]" value="$aData[iPosition]" class="inputr" size="2" maxlength="3" />
          </td>
          <td class="status">
            <input type="checkbox" name="aStatus[$aData[iProduct]]" <!-- IF:START CHECKED -->checked="checked"<!-- IF:END CHECKED --> value="1" />
          </td>
          <td class="options">
            <a href="?p=$aActions[f]-form&amp;iProduct=$aData[iProduct]"><img src="$config[dir_templates]admin/img/ico_edit.gif" alt="$lang['edit']" title="$lang['edit']" /></a>
            <a href="?p=$aActions[f]-delete&amp;iProduct=$aData[iProduct]" onclick="return delConfirm( $aData[iProduct] )"><img src="$config[dir_templates]admin/img/ico_del.gif" alt="$lang['delete']" title="$lang['delete']"/></a>  
          </td>
        </tr><!-- END LIST -->
      </tbody>
    </table>
  </fieldset>
</form>
<!-- END PRODUCTS -->

<!-- BEGIN FORM_MAIN -->
<div id="tabsDisplayLinks">
  <a href="#more" onclick="displayTabs( );" id="tabsHide">$lang['Hide_tabs']</a>
  <a href="#more" onclick="displayTabs( true );" id="tabsShow">$lang['Display_tabs']</a>
</div>
<h1><img src="$config[dir_templates]admin/img/ico_products.gif" alt="$lang['Products_form']" />$lang['Products_form']<a href="$config['manual_link']instruction#9" title="$lang[Manual]" target="_blank"></a></h1>
<form action="?p=$p&amp;iProduct=$aData[iProduct]" name="form" enctype="multipart/form-data" method="post" id="mainForm" onsubmit="return checkForm( this );">
  <fieldset id="type1">
    <input type="hidden" name="iProduct" value="$aData[iProduct]" />
    <table cellspacing="0" class="mainTable" id="product">
      <thead>
        <tr class="save">
          <th colspan="2">
            <input type="submit" value="$lang['save_list'] &raquo;" name="sOptionList" />
            <input type="submit" value="$lang['save'] &raquo;" name="sOption" />
          </th>
        </tr>
      </thead>
      <tfoot>
        <tr class="save">
          <th colspan="2">
            <input type="submit" value="$lang['save_list'] &raquo;" name="sOptionList" />
            <input type="submit" value="$lang['save'] &raquo;" name="sOption" />
          </th>
        </tr>
      </tfoot>
      <!-- name start -->
      <tr class="l0">
        <td>
          $lang['Name']
        </td>
        <th rowspan="9" class="tabs">$sFormTabs</th>
      </tr>
      <tr class="l1">
        <td>
          <input type="text" name="sName" value="$aData[sName]" class="input" style="width:100%;" alt="simple" />
        </td>
      </tr>
      <!-- name end -->
      <!-- price start -->
      <tr class="l0">
        <td>
          $lang['Price']
        </td>
      </tr>
      <tr class="l1">
        <td>
          <input type="text" name="mPrice" value="$aData[mPrice]" class="inputr" size="10" /> $config[currency_symbol]
        </td>
      </tr>
      <!-- price end -->
      <!-- description_short start -->
      <tr class="l0">
        <td>
          $lang['Short_description']
        </td>
      </tr>
      <tr class="l1">
        <td>
          $sDescriptionShort
        </td>
      </tr>
      <!-- description_short end -->
      <!-- description_full start -->
      <tr class="l0">
        <td>
          $lang['Full_description']
        </td>
      </tr>
      <tr class="l1">
        <td>
          $sDescriptionFull
        </td>
      </tr>
      <!-- description_full end -->
      <tr class="end">
        <td>&nbsp;</td>
      </tr>
    </table>
  </fieldset>
</form>
<!-- END FORM_MAIN -->

<!-- BEGIN FORM_TABS -->
<div id="tabs">
  <ul id="tabsNames">
    <!-- tabs start -->
    <li class="tabOptions"><a href="#more" onclick="displayTab( 'tabOptions' )">$lang['Options']</a></li>
    <li class="tabViewSeo"><a href="#more" onclick="displayTab( 'tabViewSeo' )">$lang['View_and_seo']</a></li>
    <li class="tabAddFiles"><a href="#more" onclick="displayTab( 'tabAddFiles' )">$lang['Add_files']</a></li>
    <li class="tabAddedFiles"><a href="#more" onclick="displayTab( 'tabAddedFiles' )">$lang['Files']</a></li>
    <!-- tabs end -->
  </ul>
  <div id="tabsForms">
    <!-- tabs list start -->
    <table class="tab" id="tabOptions">
      <tr>
        <td colspan="2">
          <table cellspacing="0" id="colOptions">
            <tr>
              <td class="opt1">$lang['Status']</td>
              <td>$sStatusBox</td>
              <td class="opt2">$lang['Position']</td>
              <td><input type="text" name="iPosition" value="$aData[iPosition]" class="inputr" size="3" maxlength="3" /></td>
            </tr>
            <!-- tab column options -->
          </table>
        </td>
      </tr>
      <tr>
        <td>$lang['Product_available']</td>
        <td><input type="text" name="sAvailable" value="$aData[sAvailable]" class="input" size="40" /></td>
      </tr>
      <tr>
        <td>$lang['Pages']</td>
        <td>
          <div id="pageParentSearch"><input type="text" name="sPageParentPhrase" id="pageParentPhrase" value="$lang[search]" class="input" size="32" onkeyup="listOptionsSearch( this, 'pageParent', 'pageParent2' )" onfocus="if(this.value=='$lang[search]')this.value=''" /></div>
          <span id="pageParentCtn"><select name="aPages[]" size="15" multiple="multiple" title="simple" id="pageParent" onclick="cloneClick( this, 'pageParent2' )">$sPagesSelect</select></span>
          <span id="pageParent2Ctn"></span>
        </td>
      </tr>
      <!-- tab options -->
    </table>
    <script type="text/javascript">
    AddOnload( function(){cacheSelect('pageParent','pageParent2','pageParent2Ctn')} );
    </script>

    <table class="tab" id="tabViewSeo">
      <tr>
        <td>$lang['Template']</td>
        <td><select name="sTemplate">$sTemplatesSelect</select></td>
      </tr>
      <tr>
        <td>$lang['Theme']</td>
        <td><select name="sTheme">$sThemesSelect</select></td>
      </tr>
      <tr>
        <td>$lang['Page_title']</td>
        <td><input type="text" name="sNameTitle" value="$aData[sNameTitle]" class="input" size="50" /></td>
      </tr>
      <tr>
        <td>$lang['Url_name']</td>
        <td><input type="text" name="sNameUrl" value="$aData[sNameUrl]" class="input" size="50" /></td>
      </tr>
      <tr>
        <td>$lang['Meta_description']</td>
        <td><input type="text" name="sMetaDescription" value="$aData[sMetaDescription]" class="input" size="50" maxlength="255" /></td>
      </tr>
      <tr>
        <td>$lang['Key_words']</td>
        <td><input type="text" name="sMetaKeywords" value="$aData[sMetaKeywords]" class="input" size="50" maxlength="255" /></td>
      </tr>
      <!-- tab view_seo -->
    </table>

    <div class="tab" id="tabAddFiles">
      <!-- tab add-files start -->
      $sFilesForm
      $sFilesDir
      <!-- tab add-files end -->
    </div>

    <div class="tab" id="tabAddedFiles">
      <!-- tab added-files start -->
      $sFilesList
      <!-- tab added-files end -->
    </div>
    <!-- tabs list end -->
  </div>
</div>

<script type="text/javascript">
<!--
AddOnload( getTabsArray );
AddOnload( checkSelectedTab );
//-->
</script>
<!-- END FORM_TABS -->
Return current item: Quick.Cart - free and simple to use shopping cart script