?> &fileurl=<?php echo $fileurl; ?> &do=add&modid=<?php echo $modid; ?> '"> </div> </div> <table width="90%" border="0" align="center" cellpadding="3" cellspacing="0" class="small"> <tr> <td class="Big" style="font-size:12px;"><img src="template/default/content/images/notify_new.gif" align="absmiddle"><span class="big3"> <?php echo form_mod($modid); ?> 流程管理</span> </td> </tr> </table> <form name="update" method="post" action="admin.php?ac=<?php echo $ac; ?> &fileurl=<?php echo $fileurl; ?> &modid=<?php echo $modid;
?> </div> <div id="search" style="float: right; padding-right:90px;"> </div> </div> <div style="position:absolute; height:90%; width:100%;overflow:auto"> <table width="98%" border="0" align="center" cellpadding="3" cellspacing="0" class="small" style="margin-top:6px;"> <form method="get" action="admin.php?modid=<?php echo $_GET['modid']; ?> " name="topSearchForm" class="ui-grid-21 ui-grid-right ui-form" style=" margin-top:0px;"> <tr> <td class="Big" style="font-size:12px;"><img src="template/default/content/images/notify_new.gif" align="absmiddle"><span class="big3"><?php echo form_mod($_GET['modid']); ?> 综合统计</span> <input type="hidden" name="ac" value="<?php echo $ac; ?> " /> <input type="hidden" name="do" value="list" /> <input type="hidden" name="fileurl" value="<?php echo $fileurl; ?> " /> <input type="hidden" name="flashtype" value="<?php echo $flashtype; ?>
<?php (!defined('IN_TOA') || !defined('IN_ADMIN')) && exit('Access Denied!'); get_key("crm_form"); $modlist = 'crm_company,crm_contact,crm_service,crm_care,crm_complaints,crm_product,crm_stock,crm_business,crm_supplier,crm_purchase,crm_offer,crm_program,crm_contract,crm_order,crm_price,crm_payment'; $r = explode(',', $modlist); if ($_GET["type1"] == '') { $_GET["type1"] = 'crm_company'; } if ($_GET["type1"] != '') { $crm_form_type = form_mod($_GET["type1"]); } else { $crm_form_type = ''; } empty($do) && ($do = 'list'); if ($do == 'list') { //列表信息 $wheresql = ''; $page = max(1, getGP('page', 'G', 'int')); $pagesize = $_CONFIG->config_data('pagenum'); $offset = ($page - 1) * $pagesize; $url = 'admin.php?ac=' . $ac . '&fileurl=' . $fileurl . '&type1=' . $_GET["type1"] . ''; $num = $db->result("SELECT COUNT(*) AS num FROM " . DB_TABLEPRE . "crm_form WHERE type1='" . $_GET["type1"] . "' "); $sql = "SELECT * FROM " . DB_TABLEPRE . "crm_form WHERE type1='" . $_GET["type1"] . "' ORDER BY inputnumber ASC LIMIT {$offset}, {$pagesize}"; $result = $db->fetch_all($sql); include_once 'mana/form.php'; } elseif ($do == '删 除') { $idarr = getGP('id', 'P', 'array'); foreach ($idarr as $id) { $db->query("DELETE FROM " . DB_TABLEPRE . "crm_form WHERE fid = '{$id}' "); }
} $strtype .= "</chart>"; } } elseif ($type == 'user') { //成员统计 if ($flashtype == 'MSColumn3D') { $flashtype = 'Column3D'; } if ($flashtype == 'MSLine') { $flashtype = 'Line'; } if ($flashtype == 'Bar2D') { $fw = '100%'; $fh = '1250'; } $strtype = "<chart caption='' xAxisName='成员统计' yAxisName='" . form_mod($_GET['modid']) . "综合统计' showValues='0' formatNumberScale='0' showBorder='1'>"; global $db; $sql = $db->query("SELECT a.id,b.name FROM " . DB_TABLEPRE . "user a," . DB_TABLEPRE . "user_view b where a.id=b.uid ORDER BY a.numbers Asc"); while ($row = $db->fetch_array($sql)) { $numuser = $db->result("SELECT COUNT(*) AS numuser FROM " . DB_TABLEPRE . $_GET['modid'] . " WHERE uid='" . $row['id'] . "' " . $wheresql . ""); $strtype .= "<set label='" . $row['name'] . "' value='" . $numuser . "' />"; } $strtype .= "</chart>"; } else { } include_once 'charts/list.php'; } function form_mod($mod = '') { switch ($mod) { case 'crm_company':
echo $ac; ?> &fileurl=<?php echo $fileurl; ?> &type1=<?php echo $r[$i]; ?> " <?php if ($r[$i] == $_GET['type1']) { ?> class="active"<?php } ?> ><span><?php echo form_mod($r[$i]); ?> </span></a> <?php } ?> </div> <div id="search" style="float: right; padding-right:90px;"> <input type="button" value="新建表单" class="BigButtonBHover" onClick="javascript:window.location='admin.php?ac=<?php echo $ac; ?> &do=add&fileurl=<?php echo $fileurl; ?> &type1=<?php