当前位置: 首页>>代码示例>>PHP>>正文


PHP renderChart函数代码示例

本文整理汇总了PHP中renderChart函数的典型用法代码示例。如果您正苦于以下问题:PHP renderChart函数的具体用法?PHP renderChart怎么用?PHP renderChart使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了renderChart函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: renderChart

	.text{
		font-family: Arial, Helvetica, sans-serif;
		font-size: 12px;
	}
	-->
	</style>
</HEAD>
<BODY>

<CENTER>
<h2><a href="http://www.fusioncharts.com" target="_blank">FusionCharts Free</a> - dataURL and Database</h2>

<?php 
//In this example, we show how to connect FusionCharts to a database
//using FusionCharts PHP class. In our other examples, we've used dataXML method
//where the XML is generated in the same page as chart. Here, the XML data
//for the chart would be generated in PieData.php.
//For the sake of ease, we've used an MySQL databases containing two tables.
//the php script in piedata.asp interacts with the database,
//converts the data into proper XML form and finally
//relays XML data document to the chart
$strDataURL = "PieData.php";
//Create the chart - Pie 3D Chart with dataURL as strDataURL
echo renderChart("../../FusionCharts/FCF_Pie3D.swf", $strDataURL, "", "FactorySum", 650, 450, false, false);
?>
<BR><BR>
<a href='../NoChart.html' target="_blank">Unable to see the chart above?</a>
<H5 ><a href='../default.htm'>&laquo; Back to list of examples</a></h5>
</CENTER>
</BODY>
</HTML>
开发者ID:laiello,项目名称:ksu,代码行数:31,代码来源:Default.php

示例2: index

 public function index()
 {
     $chart_type = 'line';
     $chart_width = 450;
     $chart_height = 250;
     // Store Name of Products
     $arrData[0][1] = "Product A";
     $arrData[1][1] = "Product B";
     $arrData[2][1] = "Product C";
     //Store sales data
     $arrData[0][2] = 567500;
     $arrData[1][2] = 615300;
     $arrData[2][2] = 556800;
     //Initialize <chart> element
     $strXML = "<chart caption='Sales by Product' numberPrefix='\$' formatNumberScale='0' theme='fint'>";
     //Convert data to XML and append
     foreach ($arrData as $arSubData) {
         $strXML .= "<set label='" . $arSubData[1] . "' value='" . $arSubData[2] . "' />";
     }
     //Close <chart> element
     $strXML .= "</chart>";
     $data['chart'] = renderChart($chart_type, '', $strXML, 'div', $chart_width, $chart_height, false, false);
     $this->load->view('fusion_firstchart', $data);
     //    $data['chart']  = renderChart("column3d", "", $strXML, "myChart", 600, 300);
     //        $this->load->view('fusion_v',$data) ;
 }
开发者ID:vishalika,项目名称:FusionCharts_Support,代码行数:26,代码来源:fusionfirst.php

示例3: index

 function index()
 {
     $this->open();
     # config pagination
     $config['base_url'] = base_url() . 'index.php/dashboard/index/';
     $this->pagination->initialize($config);
     # end config pagination
     $year = date('Y');
     $db['setoran_awal'] = $this->dashboard->setoran_awal($year);
     $data['setoran_awal'] = $db['setoran_awal']->row()->setoran_awal;
     $db['setoran_lunas'] = $this->dashboard->setoran_lunas($year);
     $data['setoran_lunas'] = $db['setoran_lunas']->row()->setoran_lunas;
     $db['setoran_lunas_tunda'] = $this->dashboard->setoran_lunas_tunda($year);
     $data['setoran_lunas_tunda'] = $db['setoran_lunas_tunda']->row()->setoran_lunas_tunda;
     $db['pembatalan_setoran_awal'] = $this->dashboard->pembatalan_setoran_awal($year);
     $data['pembatalan_setoran_awal'] = $db['pembatalan_setoran_awal']->row()->pembatalan_setoran_awal;
     $db['pembatalan_setoran_lunas'] = $this->dashboard->pembatalan_setoran_lunas($year);
     $data['pembatalan_setoran_lunas'] = $db['pembatalan_setoran_lunas']->row()->pembatalan_setoran_lunas;
     # load view
     $this->load->helper(array('url', 'fusioncharts'));
     $graph_swfFile = base_url() . 'asset/admin/js/chart/flash/Column3D.swf';
     $graph_caption = 'Chart';
     $graph_numberPrefix = 'Rp.';
     $graph_title = 'Penjualan Produk';
     $graph_width = 600;
     $graph_height = 300;
     // Store Name of Products
     $arrData[0][1] = "S Awal";
     $arrData[1][1] = "S Lunas";
     //pendapatan
     $arrData[2][1] = "S Lunas Tunda";
     //pendapatan
     $arrData[3][1] = "Batal S Awal";
     //pengeluaran
     $arrData[4][1] = "Batal S Lunas";
     //Store sales data
     $arrData[0][2] = $data['setoran_awal'];
     $arrData[1][2] = $data['setoran_lunas'];
     $arrData[2][2] = $data['setoran_lunas_tunda'];
     $arrData[3][2] = $data['pembatalan_setoran_awal'];
     $arrData[4][2] = $data['pembatalan_setoran_lunas'];
     $strXML = "<graph caption='" . $graph_caption . "' numberPrefix='" . $graph_numberPrefix . "' formatNumberScale='0' decimalPrecision='0'>";
     //Convert data to XML and append
     foreach ($arrData as $arSubData) {
         $strXML .= "<set name='" . $arSubData[1] . "' value='" . $arSubData[2] . "' color='" . getFCColor() . "' />";
     }
     //Close <chart> element
     $strXML .= "</graph>";
     $data['graph'] = renderChart($graph_swfFile, $graph_title, $strXML, "div", $graph_width, $graph_height);
     //$this->load->view('chart_view',$data) ;
     $this->load->view('dashboard/dashboard', $data);
     $this->close();
 }
开发者ID:akatgelar,项目名称:51mk3u-8p1hv2,代码行数:53,代码来源:dashboard.php

示例4: index

 public function index()
 {
     $d['judul'] = 'laporan';
     $d['judul_halaman'] = 'Laporan';
     $tahun = date("Y");
     $dataXML1 = $this->get_jumlah_berita();
     $d['caption_berita'] = "Jumlah Berita Per Bidang Fokus Tahun " . $tahun;
     $d['graph_berita'] = renderChart(base_url() . "assets/plugin/FusionCharts/Column3D.swf ", "", $dataXML1, "StatistikBerita", '100%', 400, 0, 1);
     $dataXML2 = $this->get_jumlah_artikel();
     $d['caption_artikel'] = "Jumlah Artikel berdasarkan Klasifikasi Tahun " . $tahun;
     $d['graph_artikel'] = renderChart(base_url() . "assets/plugin/FusionCharts/Column3D.swf ", "", $dataXML2, "StatistikArtikelKlasifikasi", '100%', 400, 0, 1);
     $d['content'] = $this->load->view('v_laporan', $d, true);
     $this->load->view('cari', $d);
 }
开发者ID:FaddliLWibowo,项目名称:potensi,代码行数:14,代码来源:laporan.php

示例5: index

 public function index()
 {
     $d['judul'] = 'trend';
     $d['judul_halaman'] = 'Trend';
     $d['all_tahun'] = $this->app_model->get_all_tahun();
     $d['all_kategori'] = $this->app_model->get_all_kategori();
     $data['main_content'] = 'books_view';
     $d['data_trend'] = $this->app_model->get_trend_penelitian();
     $tahun = date("Y");
     /* Chart Trend Inovasi Per Bidang Fokus */
     $dataXML1 = $this->get_trend_per_section();
     $d['caption_berita'] = "Trend Inovasi Per Bidang Fokus Tahun " . $tahun;
     $d['graph_berita'] = renderChart(base_url() . "assets/plugin/FusionCharts/MSLine.swf ", "", $dataXML1, "TrendPerSection", '100%', 300, 0, 1);
     /* Top Keyword */
     $t = '2011';
     $d['top_keyword'] = $this->app_model->get_top_keyword($t);
     print_r($d['top_keyword']);
     $d['content'] = $this->load->view('trend', $d, true);
     $this->load->view('cari', $d);
 }
开发者ID:FaddliLWibowo,项目名称:potensi,代码行数:20,代码来源:trend.php

示例6: fopen

			$totalcuotameta=0;
			$totalcuotamin=0;
			
			
			$animateChart = $_GET['animate'];
			//Set default value of 1
			if ($animateChart=="")
				$animateChart = "1";

			$ruta = "Data/";
			$name_file = $claveagt.".xml";
			$file = fopen($ruta.$name_file,"w+");
			fwrite ($file,$strXML);
			fclose($file);
			
			echo renderChart("../../Charts/MSLine.swf", $ruta.$name_file, "", $myrowusr[claveagente], 600, 300, false, false);
		}
		?>
        <!--<div id="chartContainer">FusionCharts XT will load here!</div>
		<script type="text/javascript">
		var xml = <?php echo $ruta.$name_file ?>
		var myChart = new FusionCharts( "Column3D", "myChartId", "600", "300" );
		myChart.setXMLUrl("Data\msanchez.xml");
		myChart.render("chartContainer"); 
		</script>-->

        </fieldset>
        <?php
		
		echo $strTabla;
		
开发者ID:specimen90868,项目名称:crmprueba,代码行数:30,代码来源:cuotas.php

示例7: renderChart

        <style type="text/css">
        <!--
        body {
                font-family: Arial, Helvetica, sans-serif;
                font-size: 12px;
        }
        -->
        </style>
</HEAD>
<BODY>

<CENTER>
<h2><a href="http://www.fusioncharts.com" target="_blank">FusionCharts Free</a> Examples</h2>
<h4>Simple Column 3D Chart using dataURL method</h4>
<?php 
//This page demonstrates the ease of generating charts using FusionCharts PHP Class.
//For this chart, we've used a Data.php which uses FusionCharts PHP Class (contained in /Data/ folder)
//This file will generate the chart  XML and pass it to the chart
//We will use FusionCharts PHP function - renderChart() to render the chart usin the XML
//For a head-start, we've kept this example very simple.
//Create the chart - Column 3D Chart with data from Data/Data.xml
echo renderChart("../../FusionCharts/FCF_Column3D.swf", "Data/Data.php", "", "myFirst", 600, 300, false, false);
?>
<BR><BR>
<a href='../NoChart.html' target="_blank">Unable to see the chart above?</a>
<H5 ><a href='../default.htm'>&laquo; Back to list of examples</a></h5>

</CENTER>
</BODY>
</HTML>
开发者ID:laiello,项目名称:ksu,代码行数:30,代码来源:SimpleChart.php

示例8: capaian_hasil


//.........这里部分代码省略.........
     $this->data['thangVal'] = $thangVal;
     $this->load->helper(array('url', 'fusioncharts'));
     //Convert data to XML and append
     /* P */
     $graph_swfFile = base_url() . 'public/charts/Line.swf';
     $graph_caption = 'Grafik Capaian Hasil ' . $nmSatuan . ' Tahun Anggaran ' . $thangVal;
     $graph_numberPrefix = '';
     $graph_numberSuffix = '%';
     $graph_title = 'Penyerapan Anggaran ' . $thangVal;
     $graph_width = 510;
     $graph_height = 250;
     $strXML_L = "<graph caption='" . $graph_caption . "' numberSuffix='" . $graph_numberSuffix . "' formatNumberScale='0' decimalPrecision='0'>";
     // Store Name of months
     $monthList = $this->mlib->getMonth();
     $getSerapanAnggaran = $this->msatker->getSerapanAnggaran($thangVal, $kdProgram, $kdUnit, $kdDept, $iskl);
     if ($getSerapanAnggaran) {
         $i = 0;
         foreach ($monthList as $month) {
             $arrData_P[$i][1] = $month;
             $i++;
         }
         $i = 0;
         foreach ($getSerapanAnggaran as $idx => $val) {
             $arrData_P[$i][2] = $val['value'];
             $i++;
         }
         // pre($arrData_P);
         foreach ($arrData_P as $arSubData) {
             if (isset($arSubData[2])) {
                 $strXML_L .= "<set name='" . $arSubData[1] . "' value='" . $arSubData[2] . "' color='" . getFCColor() . "' />";
             }
         }
         $strXML_L .= "</graph>";
         $this->data['graph_L'] = renderChart($graph_swfFile, $graph_title, $strXML_L, "LINE", $graph_width, $graph_height);
     } else {
         $this->data['graph_L'] = "No data to show";
     }
     // --------- PIE K/L --------- //
     $graph_swfFile_PieKL = base_url() . 'public/charts/Pie2D.swf';
     $graph_caption_PieKL = 'Capaian Hasil ' . $this->data['deptName'] . ' Tahun Anggaran ' . $thangVal;
     $graph_numberPrefix_PieKL = '';
     $graph_numberSuffix_PieKL = '%';
     $graph_title_PKL = 'Penyerapan Anggaran';
     $graph_width_PKL = 450;
     $graph_height_PKL = 250;
     $this->data['PKL'] = $this->msatker->getSerapanYearly($thangVal, $kdDept, NULL, NULL);
     $this->data['notPKL'] = 100 - $this->data['PKL'];
     // Store Name of months
     $arrData_PKL[0][1] = "Anggaran terserap";
     $arrData_PKL[1][1] = "Anggaran belum terserap";
     //Store P data
     $arrData_PKL[0][2] = $this->data['PKL'];
     $arrData_PKL[1][2] = $this->data['notPKL'];
     $strXML_P = "<graph caption='" . $graph_caption_PieKL . "' numberSuffix='" . $graph_numberSuffix_PieKL . "' formatNumberScale='0' decimalPrecision='0'>";
     foreach ($arrData_PKL as $arSubData) {
         $strXML_P .= "<set name='" . $arSubData[1] . "' value='" . $arSubData[2] . "' color='" . getFCColor() . "' />";
     }
     $strXML_P .= "</graph>";
     $this->data['graph_PKL'] = renderChart($graph_swfFile_PieKL, $graph_title_PKL, $strXML_P, "PIEPKL", $graph_width_PKL, $graph_height_PKL);
     // --------- PIE K/L --------- //
     // --------- PIE ESELON --------- //
     $graph_swfFile_PieEs = base_url() . 'public/charts/Pie2D.swf';
     $graph_caption_PieEs = 'Capaian Hasil ' . $this->data['unitName'] . ' Tahun Anggaran ' . $thangVal;
     $graph_numberPrefix_PieEs = '';
     $graph_numberSuffix_PieEs = '%';
     $graph_title_PKL = 'Penyerapan Anggaran';
开发者ID:raymerta,项目名称:Monev,代码行数:67,代码来源:satker_backup.php

示例9: renderChart

//We first request the data from the form (Default.php)
$intSoups = $_POST['Soups'];
$intSalads = $_POST['Salads'];
$intSandwiches = $_POST['Sandwiches'];
$intBeverages = $_POST['Beverages'];
$intDesserts = $_POST['Desserts'];
//In this example, we're directly showing this data back on chart.
//In your apps, you can do the required processing and then show the
//relevant data only.
//Now that we've the data in variables, we need to convert this into XML.
//The simplest method to convert data into XML is using string concatenation.
//Initialize <graph> element
$strXML = "<graph caption='Sales by Product Category' subCaption='For this week' showPercentValues='1'  showPercentageInLabel='1' pieSliceDepth='25' showBorder='1' decimalPrecision='0' showNames='1'>";
//Add all data
$strXML .= "<set name='Soups' value='" . $intSoups . "' />";
$strXML .= "<set name='Salads' value='" . $intSalads . "' />";
$strXML .= "<set name='Sandwitches' value='" . $intSandwiches . "' />";
$strXML .= "<set name='Beverages' value='" . $intBeverages . "' />";
$strXML .= "<set name='Desserts' value='" . $intDesserts . "' />";
//Close <grapht> element
$strXML .= "</graph>";
//Create the chart - Pie 3D Chart with data from $strXML
echo renderChart("../../FusionCharts/FCF_Pie3D.swf", "", $strXML, "Sales", 600, 350, false, false);
?>
<a href='javascript:history.go(-1);'>Enter data again</a>
<BR><BR>
<a href='../NoChart.html' target="_blank">Unable to see the chart above?</a>
<H5 ><a href='../default.htm'>&laquo; Back to list of examples</a></h5>
</CENTER>
</BODY>
</HTML>
开发者ID:weichun713,项目名称:wci,代码行数:31,代码来源:Chart.php

示例10: renderChart

<CENTER>
<h2><a href="http://www.fusioncharts.com" target="_blank">FusionCharts Free</a> Examples</h2>
<h4>Multiple Charts on the same page. Each chart has a unique ID.</h4>
<?php 
//This page demonstrates how you can show multiple charts on the same page.
//For this example, all the charts use the pre-built Data.xml (contained in /Data/ folder)
//However, you can very easily change the data source for any chart.
//IMPORTANT NOTE: Each chart necessarily needs to have a unique ID on the page.
//If you do not provide a unique Id, only the last chart might be visible.
//Here, we've used the ID chart1, chart2 and chart3 for the 3 charts on page.
//Create the chart - Column 3D Chart with data from Data/Data.xml
echo renderChart("../../FusionCharts/FCF_Column3D.swf", "Data/Data.xml", "", "chart1", 600, 300);
?>
	<BR><BR>
<?php 
//Now, create a Column 2D Chart
echo renderChart("../../FusionCharts/FCF_Column2D.swf", "Data/Data.xml", "", "chart2", 600, 300);
?>
	<BR><BR>
<?php 
//Now, create a Line 2D Chart
echo renderChart("../../FusionCharts/FCF_Line.swf", "Data/Data.xml", "", "chart3", 600, 300);
?>

<BR><BR>
<a href='../NoChart.html' target="_blank">Unable to see the charts above?</a>
<H5 ><a href='../default.htm'>&laquo; Back to list of examples</a></h5>
</CENTER>
</BODY>
</HTML>
开发者ID:maduhu,项目名称:opengovplatform-beta,代码行数:30,代码来源:MultiChart.php

示例11: renderChart

	<SCRIPT LANGUAGE="Javascript" SRC="../../FusionCharts/FusionCharts.js"></SCRIPT>
	<style type="text/css">
	<!--
	body {
		font-family: Arial, Helvetica, sans-serif;
		font-size: 12px;
	}
	-->
	</style>
</HEAD>
<BODY>

<CENTER>
<h2>FusionCharts Examples</h2>
<h4>Example using multilingual text from database</h4>
<?php 
//This page demonstrates the ease of generating charts using FusionCharts.
//For this chart, we've retrieved multilingual text from database
//through a XML relayer script file Data/getXMLFromDatabase.php
//The file Data/getXMLFromDatabase.php is already ANSI encoded without BOM
//We add the BOM in the file using script
//Create the chart - Column 2D Chart
echo renderChart("../../FusionCharts/Column2D.swf", "Data/getXMLFromDatabase_writeBOM.php", "", "myFirst", 500, 400, false, false);
?>
<BR><BR>
<a href='../NoChart.html' target="_blank">Unable to see the chart above?</a>
<H5 ><a href='../default.htm'>&laquo; Back to list of examples</a></h5>

</CENTER>
</BODY>
</HTML>
开发者ID:bamcod,项目名称:Disease-Surveillance,代码行数:31,代码来源:database_writeBOM.php

示例12: renderChartFromExtXML

 function renderChartFromExtXML($dataXML)
 {
     print renderChart($this->SWFFile, "", $dataXML, $this->chartID, $this->width, $this->height, $this->debugMode, $this->registerWithJS, $this->bgColor, $this->scaleMode, $this->lang);
 }
开发者ID:vitorpacheco,项目名称:cakephp-fusion-charts-plugin,代码行数:4,代码来源:FusionCharts_Gen.php

示例13: mysql_query

//$strXML will be used to store the entire XML document generated
//Generate the graph element
$strXML = "<graph caption='Factory Output report' subCaption='By Quantity' pieSliceDepth='30' showBorder='1' showNames='1' formatNumberScale='0' numberSuffix=' Units' decimalPrecision='0'>";
// Fetch all factory records
$strQuery = "select * from Factory_Master";
$result = mysql_query($strQuery) or die(mysql_error());
//Iterate through each factory
if ($result) {
    while ($ors = mysql_fetch_array($result)) {
        //Now create a second query to get details for this factory
        $strQuery = "select sum(Quantity) as TotOutput from Factory_Output where FactoryId=" . $ors['FactoryId'];
        $result2 = mysql_query($strQuery) or die(mysql_error());
        $ors2 = mysql_fetch_array($result2);
        //Generate <set name='..' value='..' />
        $strXML .= "<set name='" . $ors['FactoryName'] . "' value='" . $ors2['TotOutput'] . "' />";
        //free the resultset
        mysql_free_result($result2);
    }
}
mysql_close($link);
//Finally, close <graph> element
$strXML .= "</graph>";
//Create the chart - Pie 3D Chart with data from $strXML
echo renderChart("../../FusionCharts/FCF_Pie3D.swf", "", $strXML, "FactorySum", 650, 450);
?>
<BR><BR>
<a href='../NoChart.html' target="_blank">Unable to see the chart above?</a>
<H5 ><a href='../default.htm'>&laquo; Back to list of examples</a></h5>
</CENTER>
</BODY>
</HTML>
开发者ID:maduhu,项目名称:opengovplatform-beta,代码行数:31,代码来源:BasicDBExample.php

示例14: foreach

//Initialize <graph> element
$strXML = "<graph caption='Product A - Sales Details' PYAxisName='Revenue' SYAxisName='Quantity (in Units)' numberPrefix='\$' formatNumberScale='0' showValues='0' decimalPrecision='0' anchorSides='10' anchorRadius='3' anchorBorderColor='FF8000'>";
//Initialize <categories> element - necessary to generate a multi-series chart
$strCategories = "<categories>";
//Initiate <dataset> elements
$strDataRev = "<dataset seriesName='Revenue' color='AFD8F8' >";
$strDataQty = "<dataset seriesName='Quantity' parentYAxis='S' color='FF8000'>";
//Iterate through the data
foreach ($arrData as $arSubData) {
    //Append <category name='...' /> to strCategories
    $strCategories .= "<category name='" . $arSubData[1] . "' />";
    //Add <set value='...' /> to both the datasets
    $strDataRev .= "<set value='" . $arSubData[2] . "' />";
    $strDataQty .= "<set value='" . $arSubData[3] . "' />";
}
//Close <categories> element
$strCategories .= "</categories>";
//Close <dataset> elements
$strDataRev .= "</dataset>";
$strDataQty .= "</dataset>";
//Assemble the entire XML now
$strXML .= $strCategories . $strDataRev . $strDataQty . "</graph>";
//Create the chart - MS Column 3D Line Combination Chart with data contained in strXML
echo renderChart("../../FusionCharts/FCF_MSColumn3DLineDY.swf", "", $strXML, "productSales", 600, 300);
?>
<BR><BR>
<a href='../NoChart.html' target="_blank">Unable to see the chart above?</a>
<H5 ><a href='../default.htm'>&laquo; Back to list of examples</a></h5>
</CENTER>
</BODY>
</HTML>
开发者ID:maduhu,项目名称:opengovplatform-alpha,代码行数:31,代码来源:Combination.php

示例15: homepage


//.........这里部分代码省略.........
                        //mysql_select_db($branchyear."_Attendance") or die(mysql_error());
                        $q = mysql_query("select `" . $dates[0] . "` from " . $branch . $class . "_Attendance where RNo='" . $RNo . "';");
                        while ($res = mysql_fetch_array($q)) {
                            $values = explode(",", $res[0]);
                            for ($i = 0; $i < count($values) - 1; $i++) {
                                if (substr($values[$i], -1) == "P") {
                                    $stats["Presents"] += 1;
                                    $stats["Total"] += 1;
                                }
                                if (substr($values[$i], -1) == "A") {
                                    $stats["Absents"] += 1;
                                    $stats["Total"] += 1;
                                }
                                $p[$values[$i]] += 1;
                            }
                        }
                    }
                    $tr = '';
                    for ($i = 1; $i <= 4; $i++) {
                        $st = round($p["P" . $i . "_P"] / $nofd, 1) * 100 <= 50 ? "error" : "success";
                        $tr .= '<tr>  
				<td style="text-align:center;">' . $i . '</td>
				<td style="text-align:center;"> P' . $i . ' </td> 
				<td style="text-align:center;"><b> ' . $nofd . '</b> </td> 
				<td style="text-align:center;" class="text-success"><b> ' . $p["P" . $i . "_P"] . ' </b></td>  
				<td style="text-align:center;" class="text-success"><b> ' . round($p["P" . $i . "_P"] / $nofd, 1) . ' </b></td>  
				<td style="text-align:center;" class="text-error"><b> ' . $p["P" . $i . "_A"] . ' </b></td> 
				<td style="text-align:center;" class="text-error"><b> ' . round($p["P" . $i . "_A"] / $nofd, 1) . ' </b></td>  
				<td style="text-align:center;" class="text-' . $st . '"><b> ' . round($p["P" . $i . "_P"] / $nofd, 1) * 100 . ' % </b></td>   
			</tr>';
                        $datasetp .= "<set name='P" . $i . "' value='" . round($p["P" . $i . "_P"] / $nofd, 1) * 100 . "' color='" . $colors[$i] . "'/>";
                    }
                    $strXML .= $datasetp . "</graph>";
                    echo renderChart("assets/charts/FCF_Column3D.swf", "", $strXML, "FactorySum", 650, 380);
                    echo <<<table_head
\t\t<h5> Period Wise Attendance Representation </h5><br>
\t\t<table class="table  table-hover table-bordered "  style="padding:0px;">
\t\t\t<thead>
\t\t\t\t<tr> 
\t\t\t\t<th style="text-align:center;" valign="top"> SNo  </th> 
                                <th style="text-align:center;"   valign="top"> Period </th> 
                                <th  style="text-align:center;"  > Days </th> <th  style="text-align:center;" > Presents </th>
                                <th  style="text-align:center;"  > P/Day </th>  <th  style="text-align:center;"  > Absents </th> 
                                <th  style="text-align:center;" > A/Day </th><th  style="text-align:center;" > Performance </th> 
\t\t\t\t</tr>
\t\t\t</thead>
\t\t\t<tbody>
table_head;
                    echo $tr;
                    echo <<<tableend
\t\t\t</tbody>
\t\t</table>
\t\t<br><div class='alert alert-info'><a class='close' data-dismiss='alert'>&times;</a><strong>CNYS </strong>: Classes Not Yet Started </div>
\t<br>
tableend;
                } else {
                    echo "<br><br><h6 class='text-error text-center'>&emsp;No Submissions Found<br></h6>";
                }
            }
            /* End of Period Wise Attendance*/
            /* SUbjects Wise Attendance */
            if (strtolower($mode) == "sub") {
                //mysql_select_db($branchyear."_Subjects") or die(mysql_error());
                $query = mysql_query("Select * from " . $branch . $class . "_Subjects where RNo='{$RNo}';") or die(mysql_error());
                $subjectwise = mysql_fetch_array($query) or die(mysql_error());
                $tr = '';
开发者ID:0xc0d3r,项目名称:Attendance-Portal,代码行数:67,代码来源:students.php


注:本文中的renderChart函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。