本文整理汇总了PHP中event::outputEventDropdown方法的典型用法代码示例。如果您正苦于以下问题:PHP event::outputEventDropdown方法的具体用法?PHP event::outputEventDropdown怎么用?PHP event::outputEventDropdown使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类event
的用法示例。
在下文中一共展示了event::outputEventDropdown方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: OutputLogoImages
public static function OutputLogoImages()
{
$stdout = "";
// ------------------------------------------------------------------------
// Output drop-down list
// ------------------------------------------------------------------------
$stdout .= event::outputEventDropdown(array(), "logotype images", "", true);
// ------------------------------------------------------------------------
if (!isset($_REQUEST["confid"]) || empty($_REQUEST["confid"])) {
return $stdout;
}
// ------------------------------------------------------------------------
// GPC
// ------------------------------------------------------------------------
// Must be after call to event::outputEventDropdown() where $GLOBALS["confid"] is set.
if (!isset($GLOBALS["confid"])) {
functions::gpc_declare_input("confid", array(), false);
}
// Enforce only single event
$confid = is_array($GLOBALS["confid"]) ? current($GLOBALS["confid"]) : $GLOBALS["confid"];
// ------------------------------------------------------------------------
// Obtain data
// ------------------------------------------------------------------------
$event = self::getEventByAgendaid($confid);
if (!is_array($event)) {
return $stdout . PADDED_HR . "<div class='box error padding background'>" . "<strong>The event you selected does not exist</strong>. Please select another event." . "</div>\r\n";
}
$img_path[103] = $event["image"];
$img_path[206] = str_replace($event["subpath"], "206/" . $event["subpath"] . "_206", $event["image"]);
foreach ($img_path as $key => $path) {
$img[$key] = file_exists(INCLEVEL . $path) ? "<p><a href='" . $path . "'><strong>" . $path . "</strong></a></p>\r\n" . "<p><a href='" . $path . "'><img src='" . $path . "' alt=''></a></p>\r\n" : "<em>This file does not exist</em>";
}
$stdout .= PADDED_HR . "<h2 class='bottommargin'>" . $event["title"] . "</h2>\r\n" . "<div class='col c1of2'>\r\n" . " <h4>Logo size: 103 x 103 px</h4>\r\n" . " <p>" . $img[103] . "</p>\r\n" . "</div> <div class='col c2of2 divider'>\r\n" . " <h4>Logo size: 206 x 206 px</h4>\r\n" . " <p>" . $img[206] . "</p>\r\n" . "</div><div style='clear:both'><br></div>\r\n";
return $stdout;
}