Beispiel #1
0
 /**
  * 播放清单,播放页
  */
 public function playlist()
 {
     pc_base::load_app_func('util', 'content');
     if (isset($_GET['siteid'])) {
         $siteid = intval($_GET['siteid']);
     } else {
         $siteid = 1;
     }
     $CATEGORYS = getcache('category_content_' . $siteid, 'commons');
     $title = strip_tags($_GET['title']);
     $contentid = intval($_GET['contentid']);
     $catid = intval($_GET['catid']);
     $video_info = get_vid($contentid, $catid, $isspecial = 0);
     include template('content', 'show_videolist');
 }
Beispiel #2
0
                    print "<div id=\"textImage{$bid}\" style=\"position:absolute; top:" . $box['tly'] / $zoom . "px; left:" . $box['tlx'] / $zoom . "px; width:" . ($box['brx'] - $box['tlx']) / $zoom . "px; height:" . ($box['bry'] - $box['tly']) / $zoom . "px; background-color: " . BOX_BACKGROUND_COLOUR . "; text-align:center; font-weight:bold;\" onclick=\"textClick('{$bid}','{$bbgid}');\">{$val}</div>";
                } else {
                    if ($btid == 6) {
                        $val = htmlspecialchars($val);
                        print "<div><textarea name=\"bid{$bid}\" id=\"textBox{$bid}\" style=\"z-index: 1; position:absolute; top:" . ($box['tly'] / $zoom + ($box['bry'] - $box['tly']) / $zoom) . "px; left:" . $box['tlx'] / $zoom . "px; width:" . ($box['brx'] - $box['tlx']) / $zoom . "px; height:" . ($box['bry'] - $box['tly']) / $zoom . "px;\" onclick=\"\" onfocus=\"select()\" rows=\"20\" cols=\"80\">{$val}</textarea></div>";
                        print "<div id=\"textImage{$bid}\" style=\"position:absolute; top:" . $box['tly'] / $zoom . "px; left:" . $box['tlx'] / $zoom . "px; width:" . ($box['brx'] - $box['tlx']) / $zoom . "px; height:" . ($box['bry'] - $box['tly']) / $zoom . "px; background-color: " . BOX_BACKGROUND_COLOUR . "; text-align:center; font-weight:bold;\" onclick=\"textClick('{$bid}','{$bbgid}');\">{$val}</div>";
                    }
                }
            }
        }
    }
    print "<div><input type=\"hidden\" name=\"piddone\" value=\"{$pid}\"/></div>";
    print "</form>";
}
session_start();
$vid = get_vid();
if ($vid == false) {
    print T_("Please log in");
    exit;
}
$fid = get_fid($vid);
if (isset($_GET['centre']) && isset($_GET['fid']) && isset($_GET['pid'])) {
    $pid = $_GET['pid'];
    $sql = "UPDATE formpages\r\n\t\tSET offx = 0, offy = 0, costheta = 1, sintheta = 0, scalex = 1, scaley = 1, `centroidy` = (SELECT height / 2 FROM pages WHERE pid = '{$pid}'), `centroidx` = (SELECT width / 2 FROM pages WHERE pid = '{$pid}') \r\n\t\tWHERE fid = '{$fid}'\r\n\t\tAND pid = '{$pid}'";
    $db->Execute($sql);
}
if (!empty($fid)) {
    $qid_desc = get_qid_description($fid);
    $qid = $qid_desc['qid'];
    $description = $qid_desc['description'];
}