( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ
<?php
$VideoPath = "uploads/live/";
$live_img = 'uploads/images/';
$msg_id = $db->base64url_decode($msg_id);
$result = $db->getstarbyid($msg_id);
$catalogid = $result[0]["catalogid"];
$title = $result[0]["title"];
$description = $result[0]["description"];
$viewnum = $result[0]["viewnum"];
$rating = $result[0]["rating"];
$picture = $result[0]["picture"];
$ratenum = $result[0]["ratenum"];
$isdisplay = $result[0]["isdisplay"];
$description = $result[0]["description"];
?>
<script language="JavaScript" type="text/javascript" src="<?php echo $siteaddress;?>js/jquery-1.3.2.min.js"></script>
<script language="JavaScript" type="text/javascript" src="<?php echo $siteaddress;?>js/jquery.validate.js"></script>
<!--<script type="text/javascript" src="<?php echo $siteaddress;?>js/jquery.validate.password.js"></script>-->
<script>
$(document).ready(function(){
$('#mytitle').keyup(titleCheck);
});
/*----------------------------------------------------------------------------
*/
function titleCheck(){
var mytitle = $('#mytitle').val();
if(mytitle == "" || mytitle.length < 4){
$('#mytitle').css('border', '3px #f7941d solid');
$('#okay').hide();
}else{
jQuery.ajax({
type: "GET",
url: "check.php",
data: 'mytitle='+ mytitle,
cache: false,
success: function(response){
if(response == 1){
$('#mytitle').css('border', '3px #ed1c24 solid');
$('#okay').hide();
$('#goStar').hide();$('#title').fadeIn();
$('#no').fadeIn();
}else{
$('#mytitle').css('border', '3px #8dc63f solid');
$('#no').hide();
$('#goStar').fadeIn();
$('#title').fadeOut();
$('#okay').fadeIn();
}
}
});
}
}
</script>
<script>
$(document).ready(function(){
$.validator.addMethod("mytitle", function(value, element) {
return this.optional(element) || /^[a-z0-9\_]+$/i.test(value);
}, "Startag Title must contain only letters, numbers, or underscore.");
$.validator.addMethod("slug", function(value, element) {
return this.optional(element) || /^[a-z0-9\_-]+$/i.test(value);
}, "Username must contain only letters, numbers, or underscore.");
$("#myform").validate();
});
</script>
<style>
/*#user_name{
padding:3px;
font-size:18px;
border:3px #CCC solid;
}*/
#okay{display:none}
#no{display:none}
#okay-channel{display:none}
#no-channel{display:none}
#okay-slug{display:none}
#no-slug{display:none}
</style>
<form action="indexAlone.php?mode=startags" name="myform" id="myform" method="POST" >
<table width="100%" border="0">
<tr>
<td width="350">
<h2 style="margin-top:0px" class="post-title">Successfully created. <img id="okay-channel" src="images/okay.png" width="16" height="16"/>
<img id="no-channel" src="images/no.png" width="16" height="16"/></h2>
Rename your Brand Theme and Proceed to save </td><td>
<input name="goStar" id="goStar" value="Save *Brand" type="submit" class="btn-lg btn-info pull-right " style=" margin-top:2px;border:0px; margin-left:20px; background-color:#F2B601" >
<span id="title" style="background-color:#cc0000; display:none" class="btn-lg btn-info pull-right m-l-lg"><i class="icon-remove"></i>Title Taken</span>
<div class="form-group">
<div class="input-group m-b"> <span class="input-group-addon lt no-border bg-info dk">Title</span>
<input name="mytitle" type="text" placeholder="Caption" class="form-control input-lg" id="mytitle" maxlength="100" value="<?php print "$title"; ?>"></div>
</div>
</td>
</tr>
</table>
<center><img class="" src="v/uploads/thumbs/<?php echo $picture ?>" id="picme" vspace="25" style="min-width:500px; max-width:600px; margin-bottom:15px; border-radius: 10px;" >
<input type="hidden" name="msg_id" value="<?php print "$msg_id"; ?>">
<br />
</center></form>