本文整理汇总了PHP中HTMLTags_Div::get_as_string方法的典型用法代码示例。如果您正苦于以下问题:PHP HTMLTags_Div::get_as_string方法的具体用法?PHP HTMLTags_Div::get_as_string怎么用?PHP HTMLTags_Div::get_as_string使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HTMLTags_Div
的用法示例。
在下文中一共展示了HTMLTags_Div::get_as_string方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: content
public function content()
{
$div = new HTMLTags_Div();
$div->append($this->get_error_message_div());
$div->append($this->get_registration_div());
echo $div->get_as_string();
}
示例2: content
public function content()
{
$div = new HTMLTags_Div();
$div->append($this->get_log_out_div());
$div->append($this->get_error_message_div());
$div->append($this->get_account_div());
echo $div->get_as_string();
}
示例3: render_body_div_navigation
public function render_body_div_navigation()
{
$navigation_div = new HTMLTags_Div();
$navigation_div->set_attribute_str('id', 'navigation');
ob_start();
require PROJECT_ROOT . '/plug-ins/admin/www-includes/html/' . 'body.div.nav-or-error-msg.inc.php';
$str = ob_get_clean();
$navigation_div->append_str_to_content($str);
echo $navigation_div->get_as_string();
}
示例4: content
public function content()
{
$home_page_div = new HTMLTags_Div();
$heading = new HTMLTags_Heading(2, 'Drama Theory for Making Decisions');
$home_page_div->append_tag_to_content($heading);
$home_page_div->append_tag_to_content($this->get_home_page_welcome_text_div());
$home_page_div->append_tag_to_content($this->get_external_links_ul());
$home_page_div->append_tag_to_content($this->get_latest_dramas_div());
$home_page_div->append_tag_to_content($this->get_google_code_rss_div());
echo $home_page_div->get_as_string();
}
示例5: render_body_div_footer_nav
public function render_body_div_footer_nav()
{
/*
*Second Tier Nav - libraries and search
*/
$footer_nav_div = new HTMLTags_Div();
$footer_nav_div->set_attribute_str('id', 'footer-nav');
$footer_nav_div->append($this->get_second_tier_navigation_div());
$footer_nav_div->append($this->get_external_video_search_div());
echo $footer_nav_div->get_as_string();
}
示例6: get_thumbnail_queue_link
protected function get_thumbnail_queue_link($id)
{
$div = new HTMLTags_Div();
$u = $this->get_redirect_script_url();
$u->set_get_variable('action', 'requeue_video_in_thumbnail_queue');
$u->set_get_variable('id', $id);
$a = new HTMLTags_A('Refetch Thumbnail');
$a->set_href($u);
$div->append($a);
return $div->get_as_string();
}
示例7: render_top_links_ul
protected function render_top_links_ul()
{
$page_options_div = new HTMLTags_Div();
$page_options_div->set_attribute_str('id', 'page-options');
$other_pages_ul = new HTMLTags_UL();
foreach ($this->get_top_links_as() as $a) {
$li = new HTMLTags_LI();
$li->append_tag_to_content($a);
$other_pages_ul->append_tag_to_content($li);
}
$page_options_div->append_tag_to_content($other_pages_ul);
echo $page_options_div->get_as_string();
}
示例8: render_xml
public function render_xml()
{
if (isset($_GET['ajax']) && isset($_GET['related_videos']) && isset($_GET['rewrite_controls'])) {
$div = new HTMLTags_Div();
$thumbnails_wrapper_div = new HTMLTags_Div();
$thumbnails_wrapper_div->set_attribute_str('id', 'thumbnails-wrapper');
$thumbnails_wrapper_div->append(VideoLibrary_DisplayHelper::get_thumbnails_div($this->get_related_videos()));
$div->append($thumbnails_wrapper_div);
$div->append(VideoLibrary_DisplayHelper::get_pager_div($this->get_start(), $this->get_duration(), $this->get_total_related_videos_count(), $this->get_page_url()));
echo $div->get_as_string();
} elseif (isset($_GET['ajax']) && isset($_GET['related_videos'])) {
echo VideoLibrary_DisplayHelper::get_thumbnails_div($this->get_related_videos());
}
}
示例9: content
public function content()
{
$cmf = HaddockProjectOrganisation_ConfigManagerFactory::get_instance();
$config_manager = $cmf->get_config_manager('plug-ins', 'admin');
$widget_classes = $config_manager->get_start_page_widget_classes();
$div = new HTMLTags_Div();
$div->set_attribute_str('id', 'StartPageWidgetContainer');
foreach ($widget_classes as $key => $value) {
$widget_class_str = trim($value);
$instance = new $widget_class_str();
$content = $instance->get_widget_div();
$div->append($content);
}
echo $div->get_as_string();
}
示例10: render_body_div_navigation
public function render_body_div_navigation()
{
$navigation_div = new HTMLTags_Div();
$navigation_div->set_attribute_str('id', 'navigation');
#$pdf = HaddockProjectOrganisation_ProjectDirectoryFinder::get_instance();
#$pd = $pdf->get_project_directory_for_this_project();
#
#$anxf = $pd->get_admin_navigation_xml_file();
#
#$site_map_ul = new Admin_SiteMapUL($anxf);
#
#$navigation_div->append_tag_to_content($site_map_ul);
ob_start();
require PROJECT_ROOT . '/haddock/admin/www-includes/html/' . 'body.div.nav-or-error-msg.inc.php';
$str = ob_get_clean();
$navigation_div->append_str_to_content($str);
echo $navigation_div->get_as_string();
}
示例11:
<?php
/**
* Links to the admin pages for the other modules.
*
* @copyright Clear Line Web Design, 2007-01-08
*/
/**
* The contents of this panel.
*/
$tabs_div = new HTMLTags_Div();
$tabs_div->set_attribute_str('id', 'tabs');
$project_directory_finder = HaddockProjectOrganisation_ProjectDirectoryFinder::get_instance();
$project_directory = $project_directory_finder->get_project_directory_for_this_project();
$module_links_ul = new Admin_ModuleLinksUL($project_directory);
$tabs_div->append_tag_to_content($module_links_ul);
echo $tabs_div->get_as_string();
示例12:
<?php
/**
* Give the customer a chance to create a new account.
*
* @copyright Clear Line Web Design, 2007-09-21
*/
$existing_customer_log_in_div = new HTMLTags_Div();
$existing_customer_log_in_div->set_attribute_str('id', 'existing_customer_log_in_div');
$existing_customer_log_in_p_text = <<<TXT
If you already have a password, please log in here:
TXT;
$existing_customer_log_in_div->append_tag_to_content(new HTMLTags_P($existing_customer_log_in_p_text));
$existing_customer_log_in_link = new HTMLTags_A('Existing Customer Log In');
$existing_customer_log_in_link->set_attribute_str('class', 'cool_button');
$existing_customer_log_in_link->set_attribute_str('id', 'existing_customer_log_in_button');
$existing_customer_log_in_location = new HTMLTags_URL();
$existing_customer_log_in_location->set_file('/');
$existing_customer_log_in_location->set_get_variable('section', 'plug-ins');
$existing_customer_log_in_location->set_get_variable('module', 'shop');
$existing_customer_log_in_location->set_get_variable('page', 'log-in');
$existing_customer_log_in_location->set_get_variable('type', 'html');
if (isset($_GET['return_to'])) {
$existing_customer_log_in_location->set_get_variable('return_to', $_GET['return_to']);
}
$existing_customer_log_in_link->set_href($existing_customer_log_in_location);
$existing_customer_log_in_div->append_tag_to_content($existing_customer_log_in_link);
echo $existing_customer_log_in_div->get_as_string();
示例13:
<?php
/**
* Any messages that you want to appear above the products on the product
* listing page.
*
* @copyright Clear Line Web Design, 2007-07-26
*/
$div_welcome_blurb = new HTMLTags_Div();
$wecome_txt = <<<TXT
Products on sale at this shop.
TXT;
$div_welcome_blurb->append_tag_to_content(new HTMLTags_P($wecome_txt));
echo $div_welcome_blurb->get_as_string();
示例14:
<?php
/**
* A div that is displayed if the customer is not logged into a shop.
*
* @copyright Clear Line Web Design, 2007-08-21
*/
$not_logged_in_div = new HTMLTags_Div();
$not_logged_in_div->set_attribute_str('id', 'not_logged_in_div');
// Already logged in
// You are logged in as Mr. X.
$p_text = <<<TXT
You are not logged in.
TXT;
$not_logged_in_div->append_tag_to_content(new HTMLTags_P($p_text));
echo $not_logged_in_div->get_as_string();
示例15: render_limit_previous_next_div
protected function render_limit_previous_next_div()
{
?>
<!-- Start of a limit_previous_next div -->
<?php
/*
* DIV for limits and previous and nexts.
*/
$limit_previous_next_div = new HTMLTags_Div();
$limit_previous_next_div->set_attribute_str('class', 'table_pages_div');
/*
* To allow the user to set the number of extras to show at a time.
*/
$limit_action = $this->get_current_url_just_file();
#$limit_form = new Database_LimitForm(
# $limit_action,
# $this->get_current_limit(),
# '10 20 50'
#);
$limit_form = new Database_LimitForm($limit_action, $this->get_current_limit(), $this->get_limits_str());
$cbu = $this->get_current_base_url();
foreach ($cbu->get_get_variables() as $key => $value) {
$limit_form->add_hidden_input($key, $value);
}
$limit_form->add_hidden_input('order_by', $this->get_current_order_by());
$limit_form->add_hidden_input('direction', $this->get_current_direction());
$limit_form->add_hidden_input('offset', $this->get_current_offset());
$limit_previous_next_div->append_tag_to_content($limit_form);
/*
* Go the previous or next list of extras.
*/
$previous_next_url = clone $cbu;
$previous_next_url->set_get_variable('order_by', $this->get_current_order_by());
$previous_next_url->set_get_variable('direction', $this->get_current_direction());
$row_count = $this->get_total_matching_row_count();
if ($row_count > 0) {
$previous_next_ul = new Database_PreviousNextUL($previous_next_url, $this->get_current_offset(), $this->get_current_limit(), $row_count);
$limit_previous_next_div->append_tag_to_content($previous_next_ul);
}
echo $limit_previous_next_div->get_as_string();
?>
<!-- End of a limit_previous_next div -->
<?php
}