本文整理汇总了PHP中InsertChart函数的典型用法代码示例。如果您正苦于以下问题:PHP InsertChart函数的具体用法?PHP InsertChart怎么用?PHP InsertChart使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了InsertChart函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: smarty_function_graph
function smarty_function_graph($params, &$this)
{
$width = 500;
$height = 300;
$color = "FFFFFF";
$transparency = true;
extract($params);
if (empty($module) || empty($method)) {
return false;
}
include_once PATH_INCLUDES . 'charts/charts.php';
if ($title) {
global $C_translate;
$trans = $C_translate->translate($title, $module);
if (!empty($trans)) {
$title = $trans;
}
}
if ($show === false) {
$display = 'style="display:none"';
}
global $VAR;
$vars = '';
foreach ($VAR as $a => $b) {
$vars .= "&{$a}={$b}";
}
echo "<div id=\"{$id}\" class=\"graph\" {$display}>";
echo "<h3>{$title}</h3>";
echo InsertChart("includes/charts/charts.swf", "includes/charts/charts_library", URL . "ajax.php?do[]={$module}:{$method}{$vars}", $width, $height, $color, $transparency);
echo "</div>";
}
示例2: get
function get()
{
if ($this->source) {
return InsertChart($this->swf, $this->lib, $this->source, 800, 400, 'eeeeee');
}
return '';
}
示例3: graph
function graph()
{
$usersmenus = new usersMenus();
$all = main_tabs() . "<br>\n\t<H5>{folders_statistics}</H5>\n\t<br>\n\t<div style='padding:3px;border:1px dotted #CCCCCC'>\n\t" . InsertChart('js/charts.swf', "js/charts_library", "listener.graphs.php?FollowHardDisks=yes", 550, 450, "FFFFFF", true, $usersmenus->ChartLicence) . "</div>";
$tpl = new templates();
return $tpl->_ENGINE_parse_body($all);
}
示例4: page
function page()
{
$user = new user($_SESSION["uid"]);
$page = CurrentPageName();
$mail = $user->mail;
$users = new usersMenus();
$graph = InsertChart('js/charts.swf', "js/charts_library", "{$page}?graphmore={$_GET["from"]}&from={$_GET["from"]}", 550, 480, "", true, $users->ChartLicence);
$html = "\n\t<script language=\"JavaScript\"> \nvar timerID = null;\nvar timerID1 = null;\nvar tant=0;\nvar reste=0;\n\nfunction whatsnew(){\nif(document.getElementById('leftpanel_content')){\n\tLoadAjax('leftpanel_content','users.whatsnew.php');\n}\n\n}\n\nfunction demarre(){\n tant = tant+1;\n reste=10-tant;\n\tif (tant < 10 ) { \n timerID = setTimeout(\"demarre()\",5000);\n } else {\n tant = 0;\n //document.getElementById('wait').innerHTML='<img src=img/wait.gif>';\n ChargeLogs();\n demarre(); //la boucle demarre !\n }\n}\n\n\nfunction ChargeLogs(){\n\twhatsnew();\n\t}\n\n</script>\n<script>demarre();</script>\n<script>;setTimeout(\"whatsnew()\",3000);</script>\n\n\t\n\t<H2>{$_GET["from"]}:: mails/{day}</H2>{$graph}";
$tpl = new template_users("{$_GET["from"]}", $html, $_SESSION);
echo $tpl->web_page;
}
示例5: show_splash
function show_splash()
{
#=============================
# Do Output
#=============================
$this->output = InsertChart(TD_INC . "charts/charts.swf", TD_INC . "charts/charts_library", TD_ADMIN . "tools/charts/sample.php", 700, 525, NULL, true);
// 4:3 Ratio
$this->trellis->skin->add_output($this->output);
$this->nav = array("<a href='<! TD_URL !>/admin.php?section=tools'>Tools</a>", "<a href='<! TD_URL !>/admin.php?section=tools&act=stats'>Reports & Statistics</a>", "SQL Backup");
$this->trellis->skin->do_output(array('nav' => $this->nav, 'title' => 'Reports & Statistics'));
}
示例6: INDEX
function INDEX()
{
$ldap = new clladp();
$hash = $ldap->UserDatas($_SESSION["uid"]);
$mail = $hash["mail"];
$Graph = InsertChart('js/charts.swf', "js/charts_library", "listener.graphs.php?weekMessagesPerDay={$mail}", 250, 250, "FFFFFF", true, $usermenus->ChartLicence);
$html = $Graph;
$JS["JS"][] = "js/user.quarantine.js";
$tpl = new template_users('{messages_performance}', $html, 0, 0, 0, 0, $JS);
echo $tpl->web_page;
}
示例7: Graph
function Graph($email)
{
include_once 'ressources/class.mysql.inc';
include_once 'ressources/charts.php';
$usermenus = new usersMenus();
$tpl = new templates();
$sql = "SELECT COUNT(ID) as tcount FROM messages WHERE mail_to LIKE '%{$mail}%' AND quarantine='1'";
$ligne = sqlite3_fetch_array(QUERY_SQL($sql));
$quarantine_count = $ligne["tcount"];
$sql = "SELECT COUNT(ID) as tcount FROM messages WHERE mail_to LIKE '%{$mail}%' AND quarantine='0'";
$ligne = sqlite3_fetch_array(QUERY_SQL($sql));
$safe = $ligne["tcount"];
$Graph = InsertChart('js/charts.swf', "js/charts_library", "listener.graphs.php?USER_QUARANTINE={$quarantine_count}&SAFE={$safe}", 250, 250, "FFFFFF", true, $usermenus->ChartLicence);
$Graph2 = InsertChart('js/charts.swf', "js/charts_library", "listener.graphs.php?tempsQuarantine={$email}", 250, 250, "FFFFFF", true, $usermenus->ChartLicence);
$html = "\n\t<table style='width:100%'>\n\t<tr>\n\t<td>\n\t<H5>{quarantines_graph}</H5>\n\t<center>\n\t{$Graph}\n\t</center>\n\t</td>\n\t<td width=50%>\n\t<H5>{quarantines_graph} ({monthly})</H5>\t\n\t{$Graph2}\n\t</td>\n\t</tr>\n\t</table>\n\t";
return $html;
}
示例8: ArticaBackupPage_start
function ArticaBackupPage_start()
{
$users = new usersMenus();
$ini = new Bs_IniHandler(dirname(__FILE__) . '/ressources/logs/artica-backup-size.ini');
$backup = $ini->_params["artica_backup"]["backup"];
$eml = $ini->_params["artica_backup"]["eml"];
$quarantines = $ini->_params["artica_backup"]["quarantines"];
if ($backup == null) {
$backup = 0;
}
if ($eml == null) {
$eml = 0;
}
if ($quarantines == null) {
$quarantines = 0;
}
$graph1 = InsertChart('js/charts.swf', "js/charts_library", "listener.graphs.php?ArticaMailBackup=yes&email={$eml}&backup={$backup}&quanrantines={$quarantines}&attachments={$ini->_params["artica_backup"]["attachments"]}", 400, 180, "", true, $users->ChartLicence);
$size = $ini->_params["artica_backup"]["original_messages"] + $ini->_params["artica_backup"]["attachments"];
$size = FormatBytes($size);
$html = "<h1>{artica_backup_storage}</H1>\n\t" . RoundedLightWhite("<p class=caption>{artica_backup_storage_explain}") . "</p><br>\n\t<H3>{artica_backup_storage}: « {$size} »</H3>\n\t<div id=chart style='background-color:#FFFFFF;border:1px solid #CCCCCC;padding:5px;margin:5px'>{$graph1}</div>\n";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html);
}
示例9: main_stats
function main_stats()
{
include_once 'ressources/charts.php';
$page = CurrentPageName();
$users = new usersMenus();
$kav = new kav4proxy();
$hash = $kav->BuildStatistics();
$tpl = new templates();
$graph1 = InsertChart('js/charts.swf', "js/charts_library", "listener.graphs.php?kav4proxy=viruses", 300, 250, "", true, $users->ChartLicence);
$graph2 = InsertChart('js/charts.swf', "js/charts_library", "listener.graphs.php?kav4proxy=perf", 300, 250, "", true, $users->ChartLicence);
$html = main_tabs() . "<br>\n\t<form name='ffm1'>\n\t<H5>{statistics}</H5>\n\t<table style='width:100%'>\n\t<tr>\n\t<td colspan=2>\n\t\t<table style='width:100%'>\n\t\t<tr>\n\t\t\t<td>{requests_per_min}</td>\n\t\t\t<td><strong>{$hash["requests_per_min"]}</td>\n\t\t\t<td>{traffic_per_min}</td>\n\t\t\t<td><strong>{$hash["traffic_per_min"]}</td>\t\t\t\n\t\t\t<td>{total_connections}</td>\n\t\t\t<td><strong>{$hash["total_connections"]}</td>\t\t\t\t\n\t\t\t<td>{total_processes}</td>\n\t\t\t<td><strong>{$hash["total_processes"]}</td>\t\t\t\t\n\t\t\t<td>{idle_processes}</td>\n\t\t\t<td><strong>{$hash["idle_processes"]}</td>\n\t\t</tr>\n\t\t</table>\t\t\t\n\t\t\t\n\t\t</tr>\n\t\t\n\t\n\t<td valign='top'><h5>Uris</H5>\t{$graph1}</td>\n\t<td valign='top'><h5>{flow}</H5>\t{$graph2}</td>\n\t</tr>\n\t</table>";
echo $tpl->_ENGINE_parse_body($html, 'milter.index.php');
}
示例10: showChart
function showChart($chart, $chartWidth, $chartHeight)
{
$database = DB::getInstance();
$db = $database->getConnection();
$reg_key = "C1XUW9CU8Y4L.NS5T4Q79KLYCK07EK";
$chart_xml = SendChartData($chart);
$mysql['chart_xml'] = $db->real_escape_string($chart_xml);
$chart_sql = "INSERT INTO 202_charts SET chart_xml='" . $mysql['chart_xml'] . "'";
$chart_result = _mysqli_query($chart_sql);
//($chart_sql);
$chart_id = $db->insert_id;
$url['chart_id'] = urlencode($chart_id);
if (!isset($_COOKIE['hideChartUpgrade'])) {
echo '<div class="modal fade" id="chartsUpgradeModal" tabindex="-1" role="dialog" aria-labelledby="chartsUpgradeModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="chartsUpgradeModalLabel">NEW HTML5 charts</h4>
</div>
<div class="modal-body">
<img src="/202-img/chart.png" style="width: 100%;">
</div>
<div class="modal-footer">
<a href="http://click202.com/tracking202/redirect/dl.php?t202id=8151295&t202kw=graph" target="_blank" class="btn btn-p202">This is a Prosper202 Pro Feature: Upgrade Now To Access!</a>
</div>
</div>
</div>
</div>';
echo '<script>$("#chartsUpgradeModal").modal();</script>';
}
echo InsertChart('/202-charts/charts.swf', '/202-charts/charts_library', '/202-charts/showChart.php?chart_id=' . $url['chart_id'], $chartWidth, $chartHeight, 'FFFFFF', false, $reg_key);
}
示例11: PrintNewsletterStatsChart
function PrintNewsletterStatsChart($statid=0)
{
$statsapi = $this->GetApi('Stats');
include(dirname(__FILE__) . '/amcharts/amcharts.php');
$perpage = 1;
$summary = $statsapi->GetNewsletterSummary($statid, true, $perpage);
$sent_size = $summary['sendsize'];
$total_bounces = $summary['bouncecount_unknown'] + $summary['bouncecount_hard'] + $summary['bouncecount_soft'];
// now for the opens page.
// by default this is for all opens, not unique opens.
$only_unique = false;
if (isset($_GET['Unique'])) {
$only_unique = true;
}
$unopened = $sent_size - $summary['emailopens_unique'] - $total_bounces;
if ($unopened < 0) {
$unopened = 0;
}
$data_url = 'stats_chart.php?Opens='. $summary['emailopens_unique'] . '&Unopened=' . $unopened . '&Bounced=' . $total_bounces . '&' . IEM::SESSION_NAME . '=' . IEM::sessionID();
// Newsletter Summary Chart
$chart = InsertChart('pie', $data_url, array('graph_title' => GetLang("NewsletterSummaryChart"), 'y_position' => '150', 'x_position' => '300', 'legend_x_position' => '0', 'legend_y_position' => '230', 'title_align' => 'left'));
echo $chart;
}
示例12: page
function page()
{
$uid = $_GET["uid"];
$uidenc = urlencode($uid);
$users = new usersMenus();
$page = CurrentPageName();
$RealMailBox = false;
$tpl = new templates();
$page = CurrentPageName();
$user = new user($uid);
$t = time();
$cyr = new cyrus();
if ($GLOBALS["VERBOSE"]) {
echo "<H1> cyrus ( ) -> IfMailBoxExists({$uid})</H1>\n";
}
$RealMailBox = $cyr->IfMailBoxExists($uid);
if (!$RealMailBox) {
if (preg_match("#Authentication failed#i", $cyr->cyrus_infos)) {
echo USER_MAILBOX_AUTHENTICATION_FAILED($uid, nl2br($cyr->cyrus_infos));
return;
}
echo USER_MAILBOX_NONEXISTENT($uid, nl2br($cyr->cyrus_infos));
$no_mailbox = "<p class=caption style='color:#d32d2d'>{user_no_mailbox} !!</p>";
return;
}
if ($user->MailboxActive == 'TRUE') {
$MailboxActive = 1;
$cyrus = new cyrus();
$res = $cyrus->get_quota_array($uid);
$size = $cyrus->MailboxInfosSize($uid);
$orgfree = $cyrus->USER_STORAGE_LIMIT - $cyrus->USER_STORAGE_USAGE;
$free = FormatBytes($orgfree);
if ($cyrus->MailBoxExists($uid)) {
$graph1 = InsertChart('js/charts.swf', "js/charts_library", "listener.graphs.php?USER_STORAGE_USAGE={$cyrus->USER_STORAGE_USAGE}&STORAGE_LIMIT={$cyrus->USER_STORAGE_LIMIT}&FREE={$orgfree}", 200, 167, "", true, $users->ChartLicence);
} else {
$graph1 = "<H3>{no_mailbox_user}</H3>";
}
$mailboxInfos = "<div>\n\t\t\t<i>" . FormatBytes($cyrus->USER_STORAGE_USAGE) . "/" . FormatBytes($cyrus->USER_STORAGE_LIMIT) . "<br>\n\t\t\t({$free} {free})</i><br><strong>" . FormatBytes($size) . " used</strong>\n\t\t\t </div>";
}
$export_mailbox = $tpl->_ENGINE_parse_body('{export_mailbox}');
$import_mailbox = $tpl->_ENGINE_parse_body('{import_mailbox}');
if (strlen($import_mailbox) > strlen($export_mailbox)) {
$import_mailbox = substr($import_mailbox, 0, strlen($export_mailbox) - 3) . "...";
}
//sudo -u cyrusimap /usr/bin/cyrus/bin/reconstruct -r -f user/shortname
$tr[] = button("{repair_mailbox}", "Loadjs('domains.edit.user.php?script=repair_mailbox&uid={$uidenc}');", 18, 286);
$tr[] = button("{export_mailbox}", "Loadjs('domains.edit.user.php?script=export_script&uid={$uidenc}');", 18, 286);
$tr[] = button("{empty_this_mailbox}", "Loadjs('domains.edit.user.empty.mailbox.php?&userid={$uidenc}');", 18, 286);
$tr[] = button("{delete_this_mailbox}", "Loadjs('domains.edit.user.php?script=delete_mailbox&uid={$uidenc}');", 18, 286);
while (list($key, $line) = each($tr)) {
$buttons = $buttons . "\n\t<tr>\n\t\t<td><center style='margin-bottom:15px'>{$line}</center></td>\n\t</tr>\t\t\n\t\t\t\n\t";
}
if (!$RealMailBox) {
$buttons = null;
}
$priv = new usersMenus();
$ini = new Bs_IniHandler();
$ini->loadString($user->MailboxSecurityParameters);
$button = "\n \t<tr>\n \t\t<td colspan=2 align='right'>\n \t\t<hr>\n \t\t" . button("{apply}", "Save{$t}()", 26) . "\n \t\t</td>\n \t</tr>\n \t";
if ($priv->AllowAddUsers == false) {
$button = null;
$img_left_mbx = "<img src='img/folder-mailbox-96.png'>";
}
$subtitle = "{user_quota}";
$main_graph = "<div style='border:1px solid #005447;padding:5px;margin:3px'><span id='mailbox_graph'>{$graph1}</span></div>";
if ($user->MailBoxMaxSize == 0) {
$subtitle = "<i>{user_has_no_quota}</i>";
$graph1 = null;
$mailboxInfos = "<strong>" . FormatBytes($size) . " used</strong>";
$mailboxInfos = null;
$main_graph = null;
}
if ($ldap->ldap_last_error != null) {
return nl2br($ldap->ldap_last_error);
}
$ADDisable = 0;
if ($priv->EnableManageUsersTroughActiveDirectory) {
$ADDisable = 1;
$button = null;
}
if ($subtitle != null) {
$subtitle = "<p class=explain style='font-size:16px'>{$subtitle}</p>";
}
$html = "\n<div id='usermailboxformdiv'>\n<table style='width:100%'>\n<form name='FFUserMailBox'>\n<input type='hidden' name='UserMailBoxEdit' value='{$uid}'>\n<table style='width:100%'>\n<tr>\t\n\t<td valign='top' style='width:288px'><table style='width:100%'>{$buttons}</table></td>\n\t<td valign='top'>\n<table style='width:100%'>\n\t<tr>\n\t\t<td colspan=3>\n\t\t\t<div style='font-size:30px;margin-bottom:20px'>{mailbox} {mailbox account}: {$uid}</div>{$mailboxInfo}\n\t\t</td>\n\t</tr>\n\t\t<td class=legend style='font-size:18px' class=legend>{MailboxActive}</td>\n\t\t<td>" . Field_checkbox_design("MailboxActive-{$t}", 1, $MailboxActive) . "</td>\n\t\t<td> </td>\n\t</tr>\n\t<tr>\n\t\t<td align='right' nowrap class=legend valign='middle' \n\t\t\tstyle='vertical-align:middle;font-size:18px'>{mailbox quota}:</td>\n\t\t<td style='font-size:18px'>" . Field_text('MailBoxMaxSize', $user->MailBoxMaxSize, 'width:95px;font-size:18px') . " MB</td>\n\t\t<td align='left'>" . help_icon($mailboxInfos, true) . "</td>\n\t</tr>\n\t<tr>\n\t<td colspan=3>{$subtitle}</td>\n\t</tr>\n\t<tr>\n\t<td colspan=3><div style='font-size:30px;margin-bottom:20px'>{mailbox_priv}</div></td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='text-align:rigth;font-size:18px'>{mplt}:</td>\n\t\t<td>" . Field_checkbox_design("mp_l-{$t}", 1, $ini->_params["mailbox"]["l"], null, '{mpl}') . "</td>\n\t\t<td> </td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend nowrap style='text-align:rigth;font-size:18px'>{mprt}:</td>\n\t\t<td>" . Field_checkbox_design("mp_r-{$t}", 1, $ini->_params["mailbox"]["r"], null, '{mpr}') . "</td>\n\t\t<td> </td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend nowrap style='text-align:rigth;font-size:18px'>{mpst}:</td>\n\t\t<td>" . Field_checkbox_design("mp_s-{$t}", 1, $ini->_params["mailbox"]["s"], null, '{mps}') . "</td>\n\t\t<td> </td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend nowrap style='text-align:rigth;font-size:18px'>{mpwt}:</td>\n\t\t<td>" . Field_checkbox_design("mp_w-{$t}", 1, $ini->_params["mailbox"]["w"], null, '{mpw}') . "</td>\n\t\t<td> </td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend nowrap style='text-align:rigth;font-size:18px'>{mpit}:</td>\n\t\t<td>" . Field_checkbox_design("mp_i-{$t}", 1, $ini->_params["mailbox"]["i"], null, '{mpi}') . "</td>\n\t\t<td> </td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend nowrap style='text-align:rigth;font-size:18px'>{mppt}:</td>\n\t\t<td>" . Field_checkbox_design("mp_p-{$t}", 1, $ini->_params["mailbox"]["p"], null, '{mpp}') . "</td>\n\t\t<td> </td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend nowrap style='text-align:rigth;font-size:18px'>{mpct}:</td>\n\t\t<td>" . Field_checkbox_design("mp_c-{$t}", 1, $ini->_params["mailbox"]["c"], null, '{mpc}') . "</td>\n\t\t<td> </td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend nowrap style='text-align:rigth;font-size:18px'>{mpdt}:</td>\n\t\t<td>" . Field_checkbox_design("mp_d-{$t}", 1, $ini->_params["mailbox"]["d"], null, '{mpd}') . "</td>\n\t\t<td> </td>\n\t</tr>\n\t<tr>\n\t<td class=legend nowrap style='text-align:rigth;font-size:18px'><strong>{mpat}</strong>:</td>\n\t<td>" . Field_checkbox_design("mp_a-{$t}", 1, $ini->_params["mailbox"]["a"], null, '{mpa}') . "</td>\n\t<td> </td>\n\t</tr>\n\t<tr>\n\t\t<td colspan=3 align='right'>{$button}</td>\n\t</tr>\n\t</table>\n</td>\n</tr>\n</table>\n<p> </p>\n\n{$main_graph}\n\n<script>\n\tvar xSave{$t}= function (obj) {\n\t\tvar MailBoxMaxSize='0';\n\t\tvar tempvalue=obj.responseText;\n\t\tif(document.getElementById('MailBoxMaxSize')){\n\t\t\tvar MailBoxMaxSize=document.getElementById('MailBoxMaxSize').value;\n\t\t}\n\t\tif(tempvalue.length>3){\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\tLoadjs('domains.edit.user.create.mbx.php?uid={$uidenc}&MailBoxMaxSize='+MailBoxMaxSize);\n\t}\t\t\n\n\tfunction Save{$t}(){\n\t\t\n\t\tvar mp_l=1;\n\t\tvar mp_r=1;\n\t\tvar mp_s=1;\n\t\tvar mp_w=1;\n\t\tvar mp_i=1;\n\t\tvar mp_p=1;\n\t\tvar mp_c=1;\n\t\tvar mp_d=1;\n\t\tvar mp_a=1;\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('Save','{$uid}');\n\t\tif(document.getElementById('MailboxActive-{$t}').checked){XHR.appendData('MailboxActive','TRUE');}else{XHR.appendData('MailboxActive','FALSE');}\n\t\tXHR.appendData('MailBoxMaxSize',document.getElementById('MailBoxMaxSize').value);\n\t\tif(document.getElementById('mp_l-{$t}').checked){mp_l=1;}else{mp_l=0;}\n\t\tif(document.getElementById('mp_r-{$t}').checked){mp_r=1;}else{mp_r=0;}\n\t\tif(document.getElementById('mp_s-{$t}').checked){mp_s=1;}else{mp_s=0;}\n\t\tif(document.getElementById('mp_w-{$t}').checked){mp_w=1;}else{mp_w=0;}\n\t\tif(document.getElementById('mp_i-{$t}').checked){mp_i=1;}else{mp_i=0;}\n\t\tif(document.getElementById('mp_p-{$t}').checked){mp_p=1;}else{mp_p=0;}\n\t\tif(document.getElementById('mp_c-{$t}').checked){mp_c=1;}else{mp_c=0;}\n\t\tif(document.getElementById('mp_d-{$t}').checked){mp_d=1;}else{mp_d=0;}\n\t\tif(document.getElementById('mp_a-{$t}').checked){mp_a=1;}else{mp_a=0;}\t\n\t\t\n\t\tXHR.appendData('mp_l',mp_l);\n\t\tXHR.appendData('mp_r',mp_r);\n\t\tXHR.appendData('mp_s',mp_s);\n\t\tXHR.appendData('mp_w',mp_w);\n\t\tXHR.appendData('mp_i',mp_i);\n\t\tXHR.appendData('mp_p',mp_p);\n\t\tXHR.appendData('mp_c',mp_c);\n\t\tXHR.appendData('mp_d',mp_d);\n\t\tXHR.appendData('mp_a',mp_a);\n\t\t\n\t\t\n\t\tXHR.sendAndLoad('{$page}', 'POST',xSave{$t});\t\n\t}\n\t\t\t\t\t\t\t\n</script>\n";
echo $tpl->_ENGINE_parse_body($html);
}
示例13: InsertChart
include 'includes/header.php';
?>
<div >
<br><br>
<?php
if (isset($_POST['encuesta'])) {
include "charts.php";
echo InsertChart("charts.swf", "charts_library", "generadorReportes.php?tipo=0&enc=" . $_POST['encuesta'], 500, 300);
echo InsertChart("charts.swf", "charts_library", "generadorReportes.php?tipo=1&enc=" . $_POST['encuesta'], 500, 300);
echo InsertChart("charts.swf", "charts_library", "generadorReportes.php?tipo=2&enc=" . $_POST['encuesta'], 1000, 500);
$consulta = "SELECT id_pre FROM pregunta WHERE id_enc = '" . $_POST['encuesta'] . "';";
$mysqli = conectar();
$resultado = $mysqli->query($consulta);
if ($resultado) {
while ($fila = $resultado->fetch_assoc()) {
echo InsertChart("charts.swf", "charts_library", "generadorReportes.php?id=" . $fila['id_pre'], 500, 300);
}
}
$mysqli->close();
} else {
$consulta = "SELECT * FROM encuesta";
$mysqli = conectar();
$resultado = $mysqli->query($consulta);
if ($resultado) {
while ($fila = $resultado->fetch_assoc()) {
echo '<form method="POST" action="resultado.php">';
echo '<input type="hidden" name=encuesta value="' . $fila['id_enc'] . '">' . '<input type="submit" value="' . $fila['titulo'] . '"></form>';
}
}
$mysqli->close();
}
示例14: InsertChart
<html><body>
<?php
//include charts.php to access the SendChartData function
include "../skins/smadbis/billing/cadbisnew/graph/charts.php";
echo InsertChart("../skins/smadbis/billing/cadbisnew/graph/charts.swf", "../skins/smadbis/billing/cadbisnew/graph/charts_library", "../skins/smadbis/billing/chart_data.php?chart_type=loading", 600, 400);
//нагрузка на канал
echo InsertChart("../skins/smadbis/billing/cadbisnew/graph/charts.swf", "../skins/smadbis/billing/cadbisnew/graph/charts_library", "../skins/smadbis/billing/chart_data.php?chart_type=topurl&uid=16&gid=6&limit=50", 800, 400);
//topurl
echo InsertChart("../skins/smadbis/billing/cadbisnew/graph/charts.swf", "../skins/smadbis/billing/cadbisnew/graph/charts_library", "../skins/smadbis/billing/chart_data.php?chart_type=today&uid=16&gid=6&limit=50", 800, 400);
//today
echo InsertChart("../skins/smadbis/billing/cadbisnew/graph/charts.swf", "../skins/smadbis/billing/cadbisnew/graph/charts_library", "../skins/smadbis/billing/chart_data.php?chart_type=month&uid=16&gid=6&limit=50", 800, 400);
//month
echo InsertChart("../skins/smadbis/billing/cadbisnew/graph/charts.swf", "../skins/smadbis/billing/cadbisnew/graph/charts_library", "../skins/smadbis/billing/chart_data.php?chart_type=week&uid=16&gid=6&limit=50", 800, 400);
//week
echo InsertChart("../skins/smadbis/billing/cadbisnew/graph/charts.swf", "../skins/smadbis/billing/cadbisnew/graph/charts_library", "../skins/smadbis/billing/chart_data.php?chart_type=tarifs&tarif=!all!&fdate=2004-01-01&tdate=2008-12-15", 800, 400);
//tarifs
?>
</body></html>
示例15: InsertChart
<HTML>
<BODY bgcolor="#FFFFFF">
<?php
//include charts.php to access the InsertChart function
include "charts/charts.php";
echo InsertChart("charts/charts.swf", "charts/charts_library", "grafdespcusto.php");
?>
</BODY>
</HTML>