Example #1
0
<?php css(); ?>
<?php ajax(); ?>
</head>

<!-- BEGIN BODY -->
<body class="page-header-fixed page-sidebar-fixed">
<!-- BEGIN HEADER -->
<?php
nevibar_menu();
?>
<div class="clearfix">
</div>
<!-- BEGIN CONTAINER -->
<div class="page-container">
<?php menu();?>
<?php temp(); ?>
<div class="page-content-wrapper">
<div class="page-content">
<div class="row">				
				<?php
				if(isset($_POST['employee_edit']))
				{
					      ?>
                                            <div class="portlet">
                                                <div class="portlet-title">
                                                   <div class="caption">
                                                   <?php
                                                    if(isset($_GET['emp_view']))
													{
													?>  
                                                      <i class="fa fa-th"></i> View
Example #2
0
echo temp("tblCurrentTemp");
?>
</p>
	</div>
	<div style="clear:both;"></div>

<canvas class ="Canvas" id="myCanvas" width="400" height="200" style="border:1px solid #000000;">
Your browser does not support the HTML5 canvas tag.
</canvas>

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="kalleCanvas.js" type="text/javascript"></script>
<script type="text/javascript">
var main = function() {
  //var s = <?php 
echo temp("tblCurrentTemp");
?>
;
  //$.getScript("kalleCanvas.js",function() {
    //drawMark(60,s,'x');
  //});

  var t = <?php 
echo json_encode(temp_array());
?>
;
  var arrayLength = t.length;
  var x_led = 10;
  var arrowLength = 80;
  var scaleFactor = arrowLength / Math.max.apply(null,t.map(Math.abs));
  for (i = 0;i < arrayLength-1; i= i +1) {
Example #3
0
</td>
        <td class="vtop td24 lineheight">MySQL 版本</td>
        <td class="lineheight smallfont"><?php 
echo mysql_get_server_info();
?>
</td>
      </tr>
      <tr>
        <td class="vtop td24 lineheight">图像函数库</td>
        <td class="lineheight smallfont"><?php 
echo function_exists("imageline") == 1 ? temp(function_exists("imageline")) : temp(function_exists("imageline"));
?>
</td>
        <td class="vtop td24 lineheight">Session支持</td>
        <td class="lineheight smallfont"><?php 
echo temp(function_exists("session_start"));
?>
</td>
      </tr>
      <tr>
        <td class="vtop td24 lineheight">脚本运行可占最大内存</td>
        <td class="lineheight smallfont"><?php 
echo get_cfg_var("memory_limit") ? get_cfg_var("memory_limit") : "无";
?>
</td>
        <td class="vtop td24 lineheight">脚本上传文件大小限制</td>
        <td class="lineheight smallfont"><?php 
echo get_cfg_var("upload_max_filesize") ? get_cfg_var("upload_max_filesize") : "不允许上传附件";
?>
</td>
      </tr>
Example #4
0
<?php

$a = 3;
$b = 4;
if ($a || ($b = 5)) {
    echo 'tudo';
}
echo $b;
class user
{
    public function __toString()
    {
        return '';
    }
}
function temp(string $name)
{
    echo $name;
}
temp(new user());