<?php
/*
* pendinfinfo.php, 2006
*
* bilin
* Copyright (C) 2006 Gokhan ALTINSOY hide@address.com
* http://gokhan.tubim.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* Select License Info from the Help menu to view the terms and conditions of this license.
*/
require_once 'preheader.php';
require_once 'header.php';
if (biliCheckPerm($_SESSION['usertype']) != "0") exit;
$thisfile = "pendingcompany.php?this=this";
$firsttable = "" . $GLOBALS['__TABLE_PRE__'] . "pendingcompany";
$bBRICKobj = new biliBrick($thisfile,$firsttable);
$usernamefield = array("name" => "username","type" => "text" , "width" => "0","isnew" => "true",
"isoedit" => "true","isserc" => "true");
$namefield = array("name" => "name","type" => "list", "sql" => "",
"idfield" => "id","issave" => "true" , "isfirst" => "true");
$fnamefield = array("name" => "name","type" => "text" , "width" => "0","isnew" => "true",
"isoedit" => "true","isserc" => "true");
$extrafield = array("name" => "extra","type" => "fck" , "rows" => "14","cols" => "60","issave" => "true",
"isedit" => "true","isinsert" => "true","isnew" => "true",
"isoedit" => "true","isserc" => "true");
$datedfield = array("name" => "dated","type" => "text" , "width" => "0","isedit" => "true",
"isoedit" => "true","isserc" => "true");
$bBRICKobj->setfieldstotal(
array( "username" => $usernamefield,"name" => $fnamefield ,
"extra" => $extrafield ,"dated" => $datedfield));
$bBRICKobj->setoperations(array('edit'));
$batchops = array('approvecompany','delete');
$bBRICKobj->setbatchoperations($batchops);
$bBRICKobj->setdemoview($demoview);
$bBRICKobj->showAlertMessage();
$bBRICKobj->settablerowcount($tablerowcount);
$bBRICKobj->setidfield("id");
$bDBobj = new biliDB();
$operation = $_GET['op'];
if ($operation == '')
{
print("<table><tr>");
print("<td>");
$fields = array('search');
biliCreateHtmlFormOneRow($fields,$thisfile . "&op=search","search");
print("</td>");
print("</tr></table>");
$sql = $bDBobj->biliSelectSql("*", $firsttable, "1");
$fields = array('username','name','extra','dated');
$countsql = $bDBobj->biliSelectSql("count(*) as count", $firsttable, "1");
$operations = array('edit');
$bDBobj->biliCreateHtmlTableForm($sql,$fields,$operations,$thisfile,$countsql, $_GET['start'],$tablerowcount,$batchops,"");
}
else if ($operation == 'view')
{
// empty
}
else if ($bBRICKobj->IsInController($operation)) {
$bBRICKobj->$operation();
}
require_once 'footer.php';
?>