function adminScripts() { if (isset($_GET['file']) && $_GET['file'] == 'video_op.php') { wp_enqueue_script('jquery'); wp_enqueue_script('media-upload'); wp_enqueue_script('thickbox'); wp_register_script('my-upload', PtpVideoFunc::pluginJs("video.js"), array('jquery', 'media-upload', 'thickbox')); wp_enqueue_script('my-upload'); } }
$video_table = PtpVideoDB::$video_table; $keywords = null; $keyword = isset($_POST['keyword']) ? $_POST['keyword'] : null; if ($keyword) { $keywords = "title LIKE '%{$keyword}%'"; } $total = PtpVideoDB::allCount($video_table, "*", $keywords); $pstart = ($page - 1) * $pagesize; ?> <link rel='stylesheet' href="<?php echo PtpVideoFunc::pluginCss('video.css'); ?> " type='text/css' media='all' /> <script type="text/javascript" src="<?php echo PtpVideoFunc::pluginJs('video.js'); ?> "></script> <table width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody> <tr valign="top"> <td class="content"> <div class="clear" id="main_column"> <h1 class="mainbox-title float-left">视频列表</h1> <!--主体开始--> <div class="mainbox-body"> <!--//搜索开始--> <div class="section-border"> <form method="post" action="<?php echo $page_url;