• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP increment函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: getNext

function getNext($input)
{
    $next = $input;
    do {
        $next = increment($next);
        while (($validLen = strcspn($next, 'iol')) !== strlen($next)) {
            $next = increment(substr($next, 0, $validLen + 1)) . substr($next, $validLen + 1);
        }
    } while (!isValid($next));
    return $next;
}
开发者ID:ultramega,项目名称:adventofcode2015,代码行数:11,代码来源:part2.php


示例2: increment

function increment($input, $position)
{
    global $firstLetter, $lastLetter;
    if ($position < 0) {
        return $input;
    }
    $char = ord(substr($input, $position, 1));
    if ($char == $lastLetter) {
        $input = substr_replace($input, chr($firstLetter), $position, 1);
        return increment($input, $position - 1);
    } else {
        return substr_replace($input, chr($char + 1), $position, 1);
    }
}
开发者ID:2ec0b4,项目名称:adventofcode-2015,代码行数:14,代码来源:common.php


示例3: GetPage

function GetPage($res, $increment)
{
    if ($res[id] == '') {
        $hid_id = increment(client);
        $hid_contract_id = increment(client_contract);
    } else {
        $hid_id = $res[id];
        $hid_contract_id = $res[id];
    }
    $image = $res['image'];
    if (empty($image)) {
        $image = '0.jpg';
    } else {
        $disable_img = 'disabled';
    }
    if ($res[invoice] == 1) {
        $inv_check = "checked";
    } else {
        $inv_check = "";
    }
    if ($res[report_invoice] == 1) {
        $report_check = "checked";
    } else {
        $report_check = "";
    }
    if ($res[taking_over_act] == 1) {
        $taking_check = "checked";
    } else {
        $taking_check = "";
    }
    $data .= '
	<div id="tabs1" style="width: auto; height: 557px;">
		<ul>
		<li><a href="#tab-0">მთავარი</a></li>
		<li><a href="#tab-1">პროექტი</a></li>
		</ul>
	<div id="tab-0">
	<div id="dialog-form">
	    <div style="width: 609px;  float: left;">
	    <fieldset>
	       <legend>ძირითადი ინფორმაცია</legend>
			<table>
			<tr>
			<td>
	       <table>
	    		<tr>
					<td id="img_colum">
						<img style="margin-left: 5px;" width="105" height="105" id="upload_img" src="media/uploads/file/' . $image . '" />
					</td>
				</tr>
				<tr>
					<td id="act">
						<span>
							<a href="#" onclick="view_image(' . $res[image_id] . ')" class="complate">View</a> | <a href="#" id="delete_image" image_id="' . $res[image_id] . '" class="delete">Delete</a>
						</span>
					</td>
				</tr>
				</tr>
					<td>
						<div style="margin-top:10px; width: 127px; margin-left: -5px;" class="file-uploader">
							<input id="choose_file" type="file" name="choose_file" class="input" style="display: none;">
							<button id="choose_button' . $disable_img . '" class="center" >აირჩიეთ ფაილი</button>
						</div>
					</td>
				</tr>
			</table>
			</td>
			<td>
	       <table class="dialog-form-table">
	           <tr>
	               <td colspan="2"><label for="incomming_cat_1">საიდენტიფიკაციო კოდი</label></td>
	           </tr>
	           <tr>
	                <td>
						<input type="text" id="identity_code" style="width: 300px;" value="' . $res['identity_code'] . '"/>
					</td>
				    <td>
						<button style="float:right;" id="client_check" style="width: 60px;">შეამოწმე</button>
					</td>
				</tr>
	           <tr>
	               <td colspan="2"><label for="incomming_cat_1_1">დასახელება</label></td>
	           </tr>
	           <tr>
	               <td colspan="2"><input id="client_name" style="resize: vertical;width: 415px;" value="' . $res['name'] . '"/></td>
	           </tr>
	           <tr>
	               <td colspan="2"><label for="incomming_cat_1_1_1">იურიდიული მისამართი</label></td>
    	       </tr>
	           <tr>
	               <td colspan="2"><input id="jurid_address" type="text" style="width: 415px;" value="' . $res['juridical_address'] . '"/></td>
    	       </tr>
	       		<tr>
	               <td colspan="2"><label for="incomming_comment">ფაქტიური მისამართი</label></td>
	           </tr>
	           <tr>
	               <td colspan="2"><input id="fact_address" style="resize: vertical;width: 415px;" value="' . $res['physical_address'] . '"/></td>
	           </tr>
	       </table>
			 </td> 
//.........这里部分代码省略.........
开发者ID:GeoPvN,项目名称:epro,代码行数:101,代码来源:clients.action.php


示例4: GetPage

function GetPage($res = '', $number)
{
    $num = 0;
    if ($res[phone] == "") {
        $num = $number;
    } else {
        $num = $res[phone];
    }
    if ($res[id] != '') {
        $dis = 'disabled="disabled"';
    } else {
        $dis = '';
    }
    if ($res['category_parent_id'] != '') {
        $cat_ch = $res['category_parent_id'];
    }
    $increm = mysql_query("\tSELECT  `name`,\r\n\t\t\t\t\t\t\t\t\t`rand_name`\r\n\t\t\t\t\t\t\tFROM \t`file`\r\n\t\t\t\t\t\t\tWHERE   `incomming_call_id` = {$res['id']}\r\n\t\t\t");
    $call_date = date('Y-m-d H:i:s');
    $data .= '
	<!-- jQuery Dialog -->
    <div id="add-edit-goods-form" title="საქონელი">
    	<!-- aJax -->
	</div>
	<div id="dialog-form">
			<div style="float: left; width: 673px;">	
				<fieldset >
			    	<legend>ძირითადი ინფორმაცია</legend>
		
			    	<table width="100%" class="dialog-form-table">
						<tr>
							<td style="width: 180px;"><label for="id">მომართვა №</label></td>
							<td style="width: 180px !important;"><label for="call_date">თარიღი</label></td>
							<td style="width: 180px;"><label for="call_phone">ტელეფონი</label></td>
						</tr>
						<tr>
							<td style="width: 180px;">
								<input type="text" id="id" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField user_id\'" value="' . ($res['id'] != '' ? $res['id'] : increment("incomming_call")) . '" disabled="disabled" />
							</td>
							<td style="width: 180px;">
								<input type="text" id="call_date" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField date\'" value="' . ($res['call_date'] != "" ? $res['call_date'] : $call_date) . '" disabled="disabled" />
							</td>
							<td style="width: 180px;">
								<input type="text" id="call_phone" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . ($res['call_phone'] != "" ? $res['call_phone'] : $num) . '" />
							</td>
							<td style="width: 69px;">
								<button id="button_calls" class="calls">ნომრები</button>
							</td>
						</tr>
						<tr>
							<td style="width: 180px;"><label for="category_parent_id">კატეგორია</label></td>
							<td style="width: 180px;"><label for="category_id">ზარის ტიპი</label></td>
							<td colspan="2"><label for="sub_category">ქვე-კატეგოტია</label></td>
							
						</tr>
						<tr>
							<td style="width: 180px;"><select id="category_parent_id" class="idls object">' . Getcategory($res['category_parent_id']) . '</select></td>
							<td style="width: 180px;"><select id="category_id" class="idls object">' . Getcategory1($res['category_parent_id'], $res['category_id']) . '</select></td>
							<td colspan="2"><select id="sub_category" style="width: 258px;" class="idls object">' . Getcategory2($res['category_id'], $res['sub_category']) . '</select>  </td>
							
						</tr>
					</table>

		    <table width="100%" class="dialog-form-table">
						<tr>
							<td style="width: 183px;"><label for="call_problem_date">პრობლემის თარიღი</label></td>
							<td style="width: 184px;"><label for="call_status">ინფორმაციის წყარო</label></td>
							<td style="width: 180px;"><label for="call_object_id">ბიზნეს ცენტრი</label></td>						
						</tr>
						<tr>	
							<td> <input type="text" id="call_problem_date" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['call_problem_date'] . '" /></td>
							<td style="width: 180px;"><select id="call_source_id" class="idls object">' . Getsource($res['call_source_id']) . '</select></td>
							<td colspan="2"><select  style="width: 258px;" id="call_object_id" class="idls object">' . Getobject($res['call_object_id']) . '</select></td>						
						</tr>
						<tr>
							<td style="width: 180px;"><label for="call_content">საუბრის შინაარსი</label></td>
						</tr>
						<tr>
							
							<td colspan="6">	
								<textarea  style="width: 641px; resize: none;" id="call_content" class="idle" name="call_content" cols="300" rows="4">' . $res['call_content'] . '</textarea>
							</td>
						</tr>			
					</table>
				</fieldset >
<!-------------------------------------------------------------------დავალება-------------------------------------------------------------------------->			   
				<fieldset style="margin-top: 5px;">
			    	<legend>დავალების ფორმირება</legend>
		
			    	<table class="dialog-form-table">
						<tr>
							<td style="width: 180px;"><label for="d_number">დავალების ტიპი</label></td>
							<td ><label for="d_number">განყოფილება</label></td>
							
						</tr>
			    		<tr>
							<td ><select  id="task_type_id" class="idls object">' . Gettask_type($res['task_type_id']) . '</select></td>
							<td ><select style="width: 465px;" id="task_department_id" class="idls object">' . Getdepartment($res['task_department_id']) . '</select></td>
						</tr>
					</table>		    
					<table class="dialog-form-table">
//.........这里部分代码省略.........
开发者ID:aleqsandre553,项目名称:ktg,代码行数:101,代码来源:incomming.action4.php


示例5: apache_parse

function apache_parse($options, $output)
{
    $result = array('Requests' => null, 'Bytes_sent' => null, 'Idle_workers' => null, 'Busy_workers' => null, 'CPU_Load' => null);
    # Mapping from Scoreboard statuses to friendly labels
    $scoreboard = array('_' => 'Waiting_for_connection', 'S' => 'Starting_up', 'R' => 'Reading_request', 'W' => 'Sending_reply', 'K' => 'Keepalive', 'D' => 'DNS_lookup', 'C' => 'Closing_connection', 'L' => 'Logging', 'G' => 'Gracefully_finishing', 'I' => 'Idle_cleanup', '.' => 'Open_slot');
    foreach ($scoreboard as $key => $val) {
        # These are not null, they are zero, when they aren't in the output.
        $result[$val] = 0;
    }
    # Mapping from line prefix to data item name
    $mapping = array("Total Accesses" => 'Requests', "Total kBytes" => 'Bytes_sent', "CPULoad" => 'CPU_Load', "BusyWorkers" => 'Busy_workers', "IdleWorkers" => 'Idle_workers');
    foreach (explode("\n", $output) as $line) {
        $words = explode(": ", $line);
        if ($words[0] == "Total kBytes") {
            $words[1] = big_multiply($words[1], 1024);
        }
        if (array_key_exists($words[0], $mapping)) {
            # Check for really small values indistinguishable from 0, but otherwise
            # just copy the value to the output.
            $result[$mapping[$words[0]]] = strstr($words[1], 'e') ? 0 : $words[1];
        } elseif ($words[0] == "Scoreboard") {
            $string = $words[1];
            $length = strlen($string);
            for ($i = 0; $i < $length; $i++) {
                increment($result, $scoreboard[$string[$i]], 1);
            }
        }
    }
    return $result;
}
开发者ID:kurtiss,项目名称:cacti-mongo,代码行数:30,代码来源:ss_get_by_ssh.php


示例6: doSomethingElse

}
//$result = doSomething('foo', 'bar');
//var_dump($result);
function doSomethingElse($param, $anotherParam)
{
    return "{$param} {$anotherParam}";
}
$result = doSomethingElse('foo', 'bar');
//var_dump($result);
//scope
$a = 1;
function increment($a)
{
    $a++;
}
increment($a);
//var_dump($a);
$b = null;
if (true) {
    $b = 'foo';
}
//var_dump($b);
//by reference
$a = 1;
function incByRef(&$paramToBeIncremented)
{
    $paramToBeIncremented++;
}
incByRef($a);
//var_dump($a);
//func_get_args
开发者ID:rjh427,项目名称:php-101,代码行数:31,代码来源:functions.php


示例7: GetPage

function GetPage($res = '', $number)
{
    $c_date = date('Y-m-d H:i:s');
    $num = 0;
    if ($res[phone] == "") {
        $num = $number;
    } else {
        $num = $res[phone];
    }
    $data .= '
	<!-- jQuery Dialog -->
    <div id="add-edit-goods-form" title="საქონელი">
    	<!-- aJax -->
	</div>
	<div id="dialog-form">
			<div style="float: left; width: 800px;">	
				<fieldset >
				<fieldset style="width:300px; float:left;">
			    	<legend>ძირითადი ინფორმაცია</legend>
		
			    	<table width="500px" class="dialog-form-table">
						<tr>
							<td style="width: 180px;"><label for="">მომართვა №</label></td>
							<td style="width: 180px;"><label for="">თარიღი <span style="color:red; font-weight: bold; font-size: 120%">*</span></label></td>
						</tr>							
						
						<tr>
							<td style="width: 180px;">
								<input type="text" id="id" class="idle" onblur="this.className=\'idle\'"  value="' . ($res['id'] != '' ? $res['id'] : increment('incomming_call')) . '" disabled="disabled" />
								<input style="display:none;" type="text" id="h_id" class="idle" onblur="this.className=\'idle\'"  value="' . $res['id'] . '" disabled="disabled" />
							</td>
							<td style="width: 180px;">
								<input type="text" id="c_date" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField date\'" value="' . ($res['call_date'] != '' ? $res['call_date'] : $c_date) . '" disabled="disabled" />
							</td>				
						</tr>
						<tr>
							<td style="width: 180px;"><label for="phone">ტელეფონი <span style="color:red; font-weight: bold; font-size: 120%">*</span></label></td>							
							<td><label for="person_name">აბონენტის სახელი</label></td>
						</tr>
						<tr>
							<td style="width: 180px;">
								<input type="text" id="phone" class="idle" onblur="this.className=\'idle\'"  value="' . $num . '" />
							</td>
							<td style="width: 69px;">
								<input type="text" id="person_name" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['name'] . '" />
							</td>	
						</tr>
						<tr>
							<td>
								<label for="source_id">წყარო</label>
							</td>
							<td>
							</td>
						</tr>
						<tr>
							<td>
								<select style="width: 165px;" id="source_id" class="idls object">' . Getsource($res['source_id']) . '</select>
							</td>
							<td style="width: 69px;">
								<button class="calls">ნომრები</button>
							</td>
						</tr>				
					</table>
				</fieldset>
				<fieldset style="width:220px; float:left; margin-left:10px; height:75px;">
			    	<legend>მომართვის ავტორი</legend>
					<table id="" class="dialog-form-table" width="220px">						
						<tr>
							<td style="width: 220px;"><input style="float:left;" type="radio" name="x" value="1" checked><span style="margin-top:5px; display:block;">ფიზიკური</span></td>
					  		<td style="width: 220px;"><input style="float:left;" type="radio" name="x" value="2" ' . ($res['type'] == '2' ? "checked" : "") . '><span style="margin-top:5px; display:block;"">იურიდიული</span></td>
						</tr>
					</table>
				</fieldset>
				<fieldset style="width:220px; float:left; margin-left:10px; height:85px;">
			    	<legend>ზარის შეფასება</legend>
					<table id="" class="dialog-form-table" width="220px">						
						<tr>
							<td style="width: 220px;"><input style="float:left;" type="radio" name="xx" value="1" ' . ($res['call_vote'] == '1' ? "checked" : "") . '><span style="margin-top:5px; display:block;">პოზიტიური</span></td>
					  		<td style="width: 220px;"><input style="float:left;" type="radio" name="xx" value="2" ' . ($res['call_vote'] == '2' ? "checked" : "") . '><span style="margin-top:5px; display:block;"">ნეიტრალური</span></td>
					  	</tr>
					  	<tr>
					  		<td style="width: 220px;"><input style="float:left;" type="radio" name="xx" value="3" ' . ($res['call_vote'] == '3' ? "checked" : "") . '><span style="margin-top:5px; display:block;"">ნეგატიური</span></td>
						</tr>
					</table>
				</fieldset>
				<fieldset style="width:752px; float:left;">
			    	<legend>ინფორმაცია</legend>
					<table id="" class="dialog-form-table" width="500px">
					  	<tr>
					  		<td><label for="information_category_id">კატეგორია</label></td>
					  	</tr>						
						<tr>
							<td><select style="width: 752px;" id="information_category_id" class="idls object">' . Getinformation_category($res['information_category_id']) . '</select></td>
						</tr>
						<tr>
					  		<td><label for="information_category_id">ქვე-კატეგორია</label></td>
					  	</tr>
						<tr>
							<td><select style="width: 752px;" id="information_sub_category_id" class="idls object">' . Getinformation_sub_category($res['information_sub_category_id'], $res['information_category_id']) . '</select></td>
						</tr>
//.........这里部分代码省略.........
开发者ID:GeoPvN,项目名称:winstone,代码行数:101,代码来源:main.action.php


示例8: GetPage

function GetPage($res = '')
{
    $c_date = date('Y-m-d H:i:s');
    $data .= '<div id="dialog-form">
						<div style="float: left; width: 760px;">
							<fieldset >
						    	<legend>ძირითადი ინფორმაცია</legend>
					
						    	<table width="100%" class="dialog-form-table">
									<tr>
										<td style="width: 180px;"><label for="req_num">დავალების №</label></td>
										<td style="width: 180px;"><label for="req_num">შექმნის თარიღი</label></td>
										<td style="width: 180px;"><label for="req_data">შესრულების პერიოდი</label></td>
										<td style="width: 180px;"><label for="req_phone"></label></td>
									</tr>
									<tr>
										<td style="width: 150px;">
											<input style="width: 150px;" type="text" id="id" class="idle" onblur="this.className=\'idle\'"  value="' . ($res['id'] != '' ? $res['id'] : increment('task')) . '" />
										</td>
										<td style="width: 150px;">
											<input style="width: 150px;" type="text" id="cur_date" class="idle" onblur="this.className=\'idle\'"  value="' . ($res['date'] != '' ? $res['date'] : $c_date) . '" />
										</td>
										<td style="width: 200px;">
											<input style="float:left;" type="text" id="done_start_time" class="idle" onblur="this.className=\'idle\'" value="' . $res['start_date'] . '"  /><span style="float:left; margin-top:5px;">-დან</span>
										</td>
										<td style="width: 200px;">
											<input style="float:left;" type="text" id="done_end_time" class="idle" onblur="this.className=\'idle\'" value="' . $res['end_date'] . '" /><span style="float:left; margin-top:5px;">-მდე</span>
										</td>
									</tr>
								</table>
										
								<table width="100%" class="dialog-form-table">
								   <tr>
										<td style="width: 220px;">დავალების ტიპი</select></td>
									    <td style="width: 220px;">ქვე-განყოფილება</select></td>
										<td style="width: 220px;">პრიორიტეტი</select></td> 
									</tr>
									<tr>
										<td style="width: 220px;"><select style="width: 220px;" id="task_type_id" class="idls object">' . Gettask_type($res['task_type_id']) . '</select></td>
									    <td style="width: 220px;"><select style="width: 220px;" id="task_department_id" class="idls object">' . Getdepartment($res['department_id']) . '</select></td>
										<td style="width: 220px;"><select style="width: 217px;" id="priority_id" class="idls object">' . Getpersons($res['priority_id']) . '</select></td> 
									</tr>
								</table>
								
								<table width="100%" class="dialog-form-table" id="task_comment_table">
								   <tr>
										<td style="width: 220px;">დავალების შინაარსი</td>
									</tr>
									<tr>
										<td><textarea  style="width: 99%; resize: none; height: 50px;" id="task_comment" class="idle" name="task_comment" cols="300" >' . $res['comment'] . '</textarea></td>
									</tr>
								</table>
                            </fieldset>';
    //if (Gettask_type($res['task_type_id']) == 1 && Gettask_type($res['task_type_id']) == 2) {
    $data .= '<fieldset id="additional" class="hidden">
    							    	<legend>კლიენტთა ბაზა</legend>
    									<table width="100%" class="dialog-form-table">
    									    <tr>
                                                <td>სცენარი</td>
    											<!--td style="text-align: right;">ფაილის ატვირთვა</td-->
    					   						<td style="text-align: right;">სატელეფონო ბაზა</td>
    									   </tr>
    										<tr>
    											<td style="width: 200px;"><select style="width: 200px;" id="template_id" class="idls object">' . Getscenar($res['template_id']) . '</select></td>
    											<!--td style="width: 100px;">
    											    <div class="file-uploader">
    									               <input id="choose_file" type="file" name="choose_file" class="input" style="display: none;">
    									               <button style="margin-right: 0px !important;" id="choose_button" class="center">აირჩიეთ ფაილი</button>
    									            </div>
    											</td-->
    											<td style="width: 100px;"><button style="margin-right: 0px !important;" id="choose_base" class="center">აირჩიეთ ბაზა</button>	</td>
    										</tr>
        								</table>
    													
    									<div id="dt_example" class="inner-table">
    							        <div style="width:100%;" id="container" >        	
    							            <div id="dynamic">
    							            	<div id="button_area">
    							            		<!--button id="add_button_pp">დამატება</button-->
    						        			</div>
    							                <table class="" id="example4" style="width: 100%;">
    							                    <thead>
    													<tr  id="datatable_header">
    							                           <th style="display:none">ID</th>
    														<th style="width:4%;">#</th>
    														<th style="width:%; word-break:break-all;">პირადი №<br>საიდ. კოდი</th>
    														<th style="width:%; word-break:break-all;">დასახელება</th>
    														<th style="width:%; word-break:break-all;">ფიზ / იურ.<br> პირი</th>
    														<th style="width:%; word-break:break-all;">ტელეფონი</th>
    														<th style="width:%; word-break:break-all;">ელ-ფოსტა</th>
    														<th style="width:%; word-break:break-all;">მისამართი</th>
    													</tr>
    												</thead>
    												<thead>
    													<tr class="search_header">
    														<th class="colum_hidden">
    					                            			<input type="text" name="search_id" value="" class="search_init" style="width: 10px"/>
    					                            		</th>
    														<th>
    															<input style="width:100px;" type="text" name="search_overhead" value="ფილტრი" class="search_init" />
//.........这里部分代码省略.........
开发者ID:GeoPvN,项目名称:epro,代码行数:101,代码来源:tasks_tab0.action.php


示例9: GetPage

function GetPage($res, $increment)
{
    if ($res[id] == '') {
        $incr_id = increment(project);
    } else {
        $incr_id = $res[id];
    }
    $data .= '
	
	<div id="dialog-form">
	    <fieldset style="width: 260px; height: 255px; float: left;">
	       <legend>ძირითადი ინფორმაცია</legend>
			<table class="dialog-form-table">
	           <tr>
	               <td colspan="2"><label for="incomming_cat_1_1_1">დასახელება</label></td>
    	       </tr>
	           <tr>
	               <td colspan="2"><input id="project_name" style="resize: vertical;width: 250px;" value="' . $res[name] . '"></td>
    	       </tr>
	       		<tr>
	               <td colspan="2"><label style="margin-top: 30px;" for="incomming_comment">ტიპი</label></td>
	           </tr>
	           <tr>
               		<td>
						<select style="margin-top: 10px; width: 257px;"  id="project_type">' . Get_type($res[type_id]) . '</select>
					</td>
	               
	           </tr>
			   <tr>
                             
        	       <td><label style="margin-top: 30px;" for="client_person_phone2">შექმნის თარიღი</label></td>
               </tr>
    	       <tr>
                   <td><input id="project_add_date" type="text" value="' . $res[create_date] . '"></td>
               </tr>
	       </table>
		 </fieldset>
	    
	    
        <div id="side_menu1" style="float: left;height: 273px; width: 80px;margin-left: 10px; background: #272727; color: #FFF;margin-top: 6px;">
	       <spam class="phone" style="display: block;padding: 10px 5px;  cursor: pointer;" onclick="show_right_side1(\'phone\')"><img style="padding-left: 22px;padding-bottom: 5px;" src="media/images/icons/info.png" alt="24 ICON" height="24" width="24"><div style="text-align: center;">ნომერი</div></spam>
           <spam class="holiday" style="display: block;padding: 10px 5px;  cursor: pointer;" onclick="show_right_side1(\'holiday\')"><img style="padding-left: 22px;padding-bottom: 5px;" src="media/images/icons/holiday.png" alt="24 ICON" height="24" width="24"><div style="text-align: center;">სამუშაო<br>დღე/სთ</div></spam>
	       <spam class="import" style="display: none;padding: 10px 5px;  cursor: pointer;" onclick="show_right_side1(\'import\')"><img style="padding-left: 22px;padding-bottom: 5px;" src="media/images/icons/import.png" alt="24 ICON" height="24" width="24"><div style="text-align: center;">იმპორტი</div></spam>
	       <spam class="actived" style="display: none;padding: 10px 5px;  cursor: pointer;" onclick="show_right_side1(\'actived\')"><img style="padding-left: 22px;padding-bottom: 5px;" src="media/images/icons/actived.png" alt="24 ICON" height="24" width="24"><div style="text-align: center;">აქტივაცია</div></spam>
	    </div>
	    
	    <div style="width: 790px; float: left; margin-left: 10px;" id="right_side_project">
            <fieldset style="display:none;" id="phone">
                <legend>ნომერი</legend>
	            <span id="hide_said_menu_number" class="hide_said_menu">x</span>
                <div class="margin_top_10">           
	            <div id="button_area">
                    <button id="add_number">დამატება</button>
					<button id="delete_number">წაშლა</button>
                </div>
				<table class="display" id="table_number" style="width: 100%;">
                    <thead>
                        <tr id="datatable_header">
                            <th>ID</th>
                            <th style="width: 30%;">ნომერი</th>
                            <th style="width: 20%;">რიგი</th>
                            <th style="width: 30%;">შიდა ნომ.</th>
                            <th style="width: 20%;">სცენარი</th>
							<th style="width: 25px;" class="check">&nbsp;</th>
						</tr>
                    </thead>
                    <thead>
                        <tr class="search_header">
                            <th class="colum_hidden">
                        	   <input type="text" name="search_id" value="ფილტრი" class="search_init" />
                            </th>
                            <th>
                            	<input type="text" name="search_number" value="ფილტრი" class="search_init" />
                            </th>
                            <th>
                                <input type="text" name="search_date" value="ფილტრი" class="search_init" />
                            </th>
                            <th>
                                <input type="text" name="search_date" value="ფილტრი" class="search_init" />
                            </th>
                            <th>
                                <input type="text" name="search_date" value="ფილტრი" class="search_init" />
                            </th>
							<th>
				            	<div class="callapp_checkbox">
				                    <input type="checkbox" id="check-all-number" name="check-all" />
				                    <label style="margin-top: 3px;" for="check-all-number"></label>
				                </div>
				            </th>
						</tr>
                    </thead>
                </table>
	            </div>
		</fieldset>
                       
                       <fieldset style="display:none;" id="holiday">
                <legend>სამუშაო დღე/სთ</legend>
	            <span class="hide_said_menu">x</span>
	    <style>
	    #work_table{
//.........这里部分代码省略.........
开发者ID:GeoPvN,项目名称:epro,代码行数:101,代码来源:project.action.php


示例10: increment

<?php

function increment($range, $limit)
{
    $i = 0;
    while ($i <= $limit) {
        print "<p>{$i}</p>";
        $i = $i + $range;
    }
}
if (isset($_POST['x']) && isset($_POST['y'])) {
    $x = $_POST['x'];
    $y = $_POST['y'];
    increment($x, $y);
}
?>

<form method="post">
	Increment by: <input type="text" name="x" /><br/>
	Until we get to: <input type="text" name="y" /><br/>
	<input type="submit" name="submit" value="Go!" />
</form>
开发者ID:iantaylor7,项目名称:MIT-315,代码行数:22,代码来源:increment.php


示例11: mysql_real_escape_string

require_once '../../includes/classes/core.php';
// Main Strings
$action = $_REQUEST['act'];
$error = '';
$data = '';
// Incomming Call Dialog Strings
$hidden_id = $_REQUEST['id'];
$person_name = mysql_real_escape_string($_REQUEST['person_name']);
$person_surname = mysql_real_escape_string($_REQUEST['person_surname']);
$person_posityon = mysql_real_escape_string($_REQUEST['person_posityon']);
$person_mobile = mysql_real_escape_string($_REQUEST['person_mobile']);
$person_phone = mysql_real_escape_string($_REQUEST['person_phone']);
$person_comment = mysql_real_escape_string($_REQUEST['person_comment']);
switch ($action) {
    case 'get_add_page':
        $page = GetPage('', increment(incomming_call));
        $data = array('page' => $page);
        break;
    case 'get_edit_page':
        $page = GetPage(Getincomming($hidden_id));
        $data = array('page' => $page);
        break;
    case 'disable':
        $hidden_id = $_REQUEST['id'];
        mysql_query("\tUPDATE  `client_person` \r\n\t\t\t\t\t\tSET \t\r\n\t\t\t\t\t\t\t`actived` = 0 \r\n\t\t\t\t\tWHERE `id`='{$hidden_id}'\r\n\t\t\t\t");
        break;
    case 'save-client_person':
        $hidden_id = $_REQUEST['hidden_id'];
        $hidden_client_id = $_REQUEST['hidden_client_id'];
        if ($hidden_id == '') {
            Addperson($hidden_client_id, $person_name, $person_surname, $person_posityon, $person_mobile, $person_phone, $person_comment);
开发者ID:GeoPvN,项目名称:epro,代码行数:31,代码来源:sub_clients.action.php


示例12: increment

<?php

/**
 * 测试例子
 * @link http://code.google.com/p/phplock/
 * @author sunli
 * @blog http://sunli.cnblogs.com
 * @svnversion  $Id$
 * @version v1.0 beta1
 * @license Apache License Version 2.0
 * @copyright  [email protected]
 */
echo increment();
function increment()
{
    if (!file_exists('testunlockfile')) {
        file_put_contents('testunlockfile', 0);
    }
    $num = file_get_contents('testunlockfile');
    $num = $num + 1;
    file_put_contents('testunlockfile', $num);
    return file_get_contents('testunlockfile');
}
开发者ID:jinbo51,项目名称:phplock,代码行数:23,代码来源:testunlock.php


示例13: ss_get_mysql_stats


//.........这里部分代码省略.........
    }
    # Get info on master logs. TODO: is there a way to do this without querying
    # mysql again?
    $binlogs = array(0);
    if ($chk_options['master'] && $status['log_bin'] == 'ON') {
        # See issue #8
        $result = run_query("SHOW MASTER LOGS", $conn);
        while ($row = @mysql_fetch_assoc($result)) {
            $row = array_change_key_case($row, CASE_LOWER);
            # Older versions of MySQL may not have the File_size column in the
            # results of the command.  Zero-size files indicate the user is
            # deleting binlogs manually from disk (bad user! bad!) but we should
            # not croak with a thread-stack error just because of the bad user.
            if (array_key_exists('file_size', $row) && $row['file_size'] > 0) {
                $binlogs[] = $row['file_size'];
            } else {
                break;
            }
        }
    }
    # Get SHOW PROCESSLIST and aggregate it.
    if ($chk_options['procs']) {
        $result = run_query('SHOW PROCESSLIST', $conn);
        while ($row = @mysql_fetch_assoc($result)) {
            $state = $row['State'];
            if (is_null($state)) {
                $state = 'NULL';
            }
            if ($state == '') {
                $state = 'none';
            }
            $state = str_replace(' ', '_', strtolower($state));
            if (array_key_exists("State_{$state}", $status)) {
                increment($status, "State_{$state}", 1);
            } else {
                increment($status, "State_other", 1);
            }
        }
    }
    # Get SHOW INNODB STATUS and extract the desired metrics from it. See issue
    # #8.
    $innodb_txn = false;
    $innodb_complete = false;
    if ($chk_options['innodb'] && $status['have_innodb'] == 'YES') {
        $result = run_query("SHOW /*!50000 ENGINE*/ INNODB STATUS", $conn);
        $innodb_array = @mysql_fetch_assoc($result);
        $flushed_to = false;
        $innodb_lsn = false;
        $innodb_prg = false;
        $is_plugin = false;
        $spin_waits = array();
        $spin_rounds = array();
        $os_waits = array();
        foreach (explode("\n", $innodb_array['Status']) as $line) {
            $row = explode(' ', $line);
            # SEMAPHORES
            if (strpos($line, 'Mutex spin waits') !== FALSE) {
                $spin_waits[] = tonum($row[3]);
                $spin_rounds[] = tonum($row[5]);
                $os_waits[] = tonum($row[8]);
            } elseif (strpos($line, 'RW-shared spins') !== FALSE) {
                $spin_waits[] = tonum($row[2]);
                $spin_waits[] = tonum($row[8]);
                $os_waits[] = tonum($row[5]);
                $os_waits[] = tonum($row[11]);
            } elseif (strpos($line, 'Trx id counter') !== FALSE) {
开发者ID:957204459,项目名称:Cacti,代码行数:67,代码来源:ss_get_mysql_stats.php


示例14: validate_from_network

    }
    $statement->closeCursor();
    //second we check for mask concordance
    $items = validate_from_network($conf, $items, $checker);
    $items = validate_from_regex($conf, $items, $checker);
    //third and last we randomly choose an item
    if (count($items) > 0) {
        $max = count($items);
        $index = rand(0, $max);
        while (!isset($items[$index])) {
            $index = rand(0, $max);
        }
        return $items[$index];
    } else {
        error_log("Unable to define a valid item for the checker :" . $checker . ". You should review your configuration.", 0);
        return null;
    }
}
$pdo = connexionbdd($conf);
$var = random_select($pdo, $checker, $conf);
if ($var != null) {
    $host_explode = explode(':', $var['item']);
    if (count($host_explode) == 3) {
        $array = array("host" => $host_explode[0], "protocole" => $host_explode[1], "po 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP increment_module_pref函数代码示例发布时间:2022-05-15
下一篇:
PHP increase_time_limit_to函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap