This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
rs::metabox(array( | |
'title' => 'Select custom date sale', | |
'layout' => 'none', | |
'rules' => array( | |
'post_type' => 'product' | |
), | |
'context' => 'normal', | |
'priority' => 'default', | |
'controls' => array( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
sleep(6); | |
$get_value[] = $_GET['variable1']; | |
$get_value[] = $_GET['variable2']; | |
echo json_encode($get_value); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script> | |
function loadXMLDoc(){ | |
var xmlhttp; | |
if (window.XMLHttpRequest) | |
{// code for IE7+, Firefox, Chrome, Opera, Safari | |
xmlhttp = new XMLHttpRequest(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public ActionResult Edit(EditUserModel model) | |
{ | |
if (db.Users.Any(item => item.UserName == model.UserName && item.Id != model.Id)) | |
{ | |
ModelState.AddModelError("UserName", string.Format(Translate("UserNameIsAlreadyTaken", "ValidationMessage", "Tài khoản '{0}' đã tồn tại."), model.UserName)); | |
} | |
if (db.Users.Any(item => item.Email == model.Email && item.Id != model.Id)) | |
{ | |
ModelState.AddModelError("Email", string.Format(Translate("EmailIsAlreadyTaken", "ValidationMessage", "Email đã tồn tại."), model.Email)); | |
} |