예제 #1
0
파일: index.php 프로젝트: shoko/vote
<?php

include_once 'an.php';
exit(an());
예제 #2
0
$doc->getActiveSheet()->getColumnDimension($col)->setWidth(an(3.57));
//Dps
$col = adicionar($col, 1);
$doc->getActiveSheet()->setCellValue($col . '10', $idioma['Dps'])->getStyle($col . '10')->applyFromArray(estilo(11, "000000", "B", "FFFFFF", "center", "center", 'thin', '000000'));
$doc->getActiveSheet()->setCellValue($col . '9', $idioma['Dps'])->getStyle($col . '9')->applyFromArray(estilo(11, "000000", "B", "FFFFFF", "center", "bottom", 'thin', '000000'))->getAlignment()->setTextRotation(90);
$doc->getActiveSheet()->getColumnDimension($col)->setWidth(an(3.57));
if (!$dps) {
    $doc->getActiveSheet()->getColumnDimension($col)->setVisible(false);
}
//Nota Final
$col = adicionar($col, 1);
$doc->getActiveSheet()->setCellValue($col . '10', sacarIniciales($idioma['NotaFinal']))->getStyle($col . '10')->applyFromArray(estilo(11, "000000", "B", "FFFFFF", "center", "center", 'thin', '000000'));
$doc->getActiveSheet()->setCellValue($col . '9', $idioma['NotaFinal'])->getStyle($col . '9')->applyFromArray(estilo(11, "000000", "B", "FFFFFF", "center", "bottom", 'thin', '000000'))->getAlignment()->setTextRotation(90);
$doc->getActiveSheet()->getColumnDimension($col)->setWidth(an(5));
$col = adicionar($col, 1);
$doc->getActiveSheet()->getColumnDimension($col)->setWidth(an(2));
$doc->getActiveSheet()->getColumnDimension($col)->setVisible(false);
$x = 0;
$i = 0;
foreach ($a as $al) {
    $i++;
    $regNota = $registroNotas->mostrarRegistroNotas($CodCasilleros, $al['CodAlumno'], $CodPeriodo);
    $regNota = array_shift($regNota);
    //print_r($regNota);
    $x = 10 + $i;
    $colorfondo = $i % 2 == 0 ? 'FFE699' : 'FFFFFF';
    $doc->getActiveSheet()->getRowDimension($x)->setRowHeight(22.5);
    //N
    $doc->getActiveSheet()->setCellValue('A' . $x, $i)->getStyle('A' . $x)->applyFromArray(estilo(11, "000000", "", $colorfondo, "right", "center", 'thin', '000000'));
    //Paterno
    $doc->getActiveSheet()->setCellValue('B' . $x, capitalizar($al['Paterno']))->getStyle('B' . $x)->applyFromArray(estilo(11, "000000", "", $colorfondo, "left", "center", 'thin', '000000'));
예제 #3
0
파일: stuff.php 프로젝트: N3X15/ATBBS-Plus
		Welcome to the ATBBS Dashboard.  Here, you will find an assload of
		tools to help you manage your account, personalize the board, and,
		if you have sufficient permissions, administrate the board.
	</p>
	<h2>You In A Nutshell</h2>
<?php 
$mytopics = DB::GetOne("SELECT COUNT(*) FROM {P}Topics WHERE author='{$User->ID}'");
$myreplies = DB::GetOne("SELECT COUNT(*) FROM {P}Replies WHERE author='{$User->ID}'");
$topics = DB::GetOne("SELECT COUNT(*) FROM {P}Topics");
$replies = DB::GetOne("SELECT COUNT(*) FROM {P}Replies");
?>
	<p>You are <span style="font-weight:bold;" title="Your ID"><code><?php 
echo $User->ID;
?>
</code></span>, <?php 
echo an($User->Level);
?>
 <b><?php 
echo strtolower($User->Level);
?>
</b> who has been around since <b><?php 
echo format_date($_SESSION['first_seen']);
?>
</b>.</p>
	<p>You have posted <?php 
echo $mytopics + $myreplies;
?>
 times (including topics), which means you have contributed to <b><?php 
echo sprintf('%0.2f', ($mytopics + $myreplies) / ($topics + $replies) * 100.0);
?>
%</b> (<?php