Exemplo n.º 1
0
 * @package   I18N_Arabic
 * @author    Khaled Al-Sham'aa <*****@*****.**>
 * @copyright 2006-2013 Khaled Al-Sham'aa
 *
 * @license   LGPL <http://www.gnu.org/licenses/lgpl.txt>
 * @link      http://www.ar-php.org
 */
error_reporting(E_STRICT);
$time_start = microtime(true);
date_default_timezone_set('GMT');
$time = time();
echo date('l dS F Y h:i:s A', $time);
echo '<br /><br />';
require '../../Arabic.php';
$Arabic = new I18N_Arabic('Date');
$correction = $Arabic->dateCorrection($time);
echo $Arabic->date('l dS F Y h:i:s A', $time, $correction);
$day = $Arabic->date('j', $time, $correction);
echo ' [<a href="Moon.php?day=' . $day . '" target=_blank>القمر الليلة</a>]';
echo '<br /><br />';
$Arabic->setMode(2);
echo $Arabic->date('l dS F Y h:i:s A', $time);
echo '<br /><br />';
$Arabic->setMode(3);
echo $Arabic->date('l dS F Y h:i:s A', $time);
echo '<br /><br />';
$Arabic->setMode(4);
echo $Arabic->date('l dS F Y h:i:s A', $time);
echo '<br /><br />';
$Arabic->setMode(5);
echo $Arabic->date('l dS F Y h:i:s A', $time);
Exemplo n.º 2
0
			<img  src="images/logo.png">
		</div>
		<div id="head-text">
				<p id="header"><small>مؤسسة </small> الكوثر <small>الثقافية</small></p><br>
			<p id="subHeader">Stichting Alcauther</p>
		</div>
			<div id="date" >
				<!-- The date  -->
				<?php 
date_default_timezone_set('UTC');
$time = time();
// TO control the data cahnge this variable
include "../../includes/connect2db.php";
// configration - connection and selection  \\
include "../../includes/functions.php";
$date = retrieve_data("alcDateTable", 1);
$t = (int) htmlentities(trim($date[0][0]));
//	if($numOfDays < 7){
$time = $time + 60 * 60 * 24 * $date[0][0];
//		}
require 'I18N/Arabic.php';
$obj = new I18N_Arabic('Date');
$fix = $obj->dateCorrection($time);
echo '<span style="color:#fff; padding: 0 0 4px 4px; " class="hidden-sm hidden-xs">';
echo $obj->date('dS F Y ', $time) . ' - ';
$fix = $obj->dateCorrection($time);
$obj->setMode(3);
echo $obj->date('l dS F Y ', $time, $fix) . '</span>';
?>
			</div>
</header>