. * * For more information, contact Colosa Inc, 2566 Le Jeune Rd., * Coral Gables, FL, 33134, USA, or email info@colosa.com. */ if (($RBAC_Response = $RBAC->userCanAccess( "PM_SETUP" )) != 1) return $RBAC_Response; $G_ENABLE_BLANK_SKIN = true; $uid = $_SESSION['USER_LOGGED']; $dbc = new DBConnection(); $ses = new DBSession( $dbc ); $query = $ses->execute( 'select USR_COUNTRY ,USR_CITY ,USR_LOCATION from USER where UID = "' . $uid . '"' ); $param = $query->read(); $city = $param['USR_CITY']; $query = $ses->execute( 'SELECT UID,CAPTION FROM TERRITORY WHERE TERRITORY="LOCATION" AND RELATION="' . $city . '"' ); /* $table=new templateTable('list_template.html','DIV_LOCATIONS'); $table->formatTitleCol(0,'width="80%"'); $table->formatTitleCol(1,'align="center"'); $table->formatCol(0,'width="80%" '); $table->formatCol(1,'align="center"'); $table->addTitle(array(G::LoadTranslation('ID_LOCATION'),'')); for($r=0;$r<$query->count();$r++) { $row=$query->read(); $vrow=array($row['CAPTION']); $vrow[]=''.G::LoadTranslation('ID_DELETE').''; $table->addRow($r,$vrow); } $table->addRowTag($r,'lastRow','',''); $table->addRow($r, array( $table->getBlock('text',array('value' => '', 'properties' => 'id="newLocation"')), ''.G::LoadTranslation('ID_ADD').'' )); */ $G_PUBLISH = new Publisher(); $G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'setup/location', '', $param ); //$G_PUBLISH->AddContent('template', '', '', '', $table->tpl); G::RenderPage( 'publish' ); ?>