/**************************************************************
* Date: 2006-02-04 (V 1.0)
* Author 1: Nicola Pasquini
* Author 2: Fracisc Ungureanu
* License: DO NOT Remove this text block!!!
* If block is removed, some parts of this site
* will no longer work properly, after few days.
* The authors will not be responsable for damnages
* to your website.
* Copyright© by Eurosito Comm. Srl - Italy
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
**************************************************************/
# Include session file (loads core)
require_once ("../_includes/session_set.php");
/**************************************************************
* Module Functions
**************************************************************/
function AddEditProductCateg($adata,$amode,$astage,$awhat){
global $_CCFG,$_GPV,$_POST,$title,$_nl,$_tab;
if($astage==1 || !isset($astage)){
$descr="Gestione ".($awhat=="categ"?"Categorie":"Prodotti").".
In questa sessione puoi gestire la creazione, la modifica e l'eliminazione di ".($awhat=="categ"?"categorie":"prodotti").". Per una idonea visualizzazione si consiglia di caricare immagini quadrate, il sistema le ridimensionerį a misura standard (".$_CCFG['_PROD_BIG_IMG_WIDTH']."x".$_CCFG['_PROD_BIG_IMG_HEIGHT']." pixel).";
$code='
| Categoria prodotto : | '.$_nl;
$sql="SELECT id,title,link FROM prodotti_categ";
$res=db_query_execute($sql) or die(nl2br($sql).' '.mysql_error()); while($data0=mysql_fetch_array($res))if($data0[id]==$data[idcateg])$code.=(strlen($data0[title])>40?substr($data0[title],0,40).'...':$data0[title]).$_nl; $code.=' |
| Codice prodotto : | '.$data[cod].' |
| Prezzo prodotto : | '.number_format($data[prezzo],2).' |
| Nome prodotto : | '.htmlspecialchars($data[title]).' |
| Descrizione : | '.stripslashes($data[descr]).' |
| Foto : |