<textarea rows="16" name="chadata_detail" style="width:650px" onKeyUp="if(this.value.length > 32768) this.value=this.value.substr(0,32768)"></textarea><br /> <input type="hidden" value="" name="username" id="chaformuser"> <input type="hidden" value="" name="pid" id="chaformpid"> <input type="hidden" value="" name="cid" id="chaformcid"> <?php } ?> </div> <div id="cchadetail" style="display:none;margin-bottom:10px"> <h4>Challenge Detail</h4> <div class="well" id="cchadetailcontent"></div> </div> <h4>Challenge History</h4> <div class="well" id="cchahistory"></div> <?php if (contest_challenging($cid) || contest_intermission($cid)) { ?> <div class="modal-footer"> <span id="msgbox" style="display:none;"></span> <input type='submit' value='Challenge!' class="btn btn-primary" /> </div> <?php } ?> </form> </div> <?php } } } else { ?>
echo $config["limits"]["status_per_page"]; ?> ; var gcid = '<?php echo $cid; ?> '; var cpass= <?php echo contest_passed($cid) ? "true" : "false"; ?> ; var cnt=<?php if (contest_passed($cid)) { echo "0"; } else { if (contest_intermission($cid)) { echo strtotime(contest_get_val($cid, "challenge_start_time")); } else { if (contest_challenging($cid)) { echo strtotime(contest_get_val($cid, "challenge_end_time")); } else { if (contest_running($cid)) { echo strtotime(contest_get_val($cid, "end_time")); } else { echo strtotime(contest_get_val($cid, "start_time")); } } } } ?> ;