当前位置: 首页>>代码示例>>PHP>>正文


PHP draw_title_bar函数代码示例

本文整理汇总了PHP中draw_title_bar函数的典型用法代码示例。如果您正苦于以下问题:PHP draw_title_bar函数的具体用法?PHP draw_title_bar怎么用?PHP draw_title_bar使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了draw_title_bar函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: defined

/**
* @project ApPHP Business Directory
* @copyright (c) 2011 ApPHP
* @author ApPHP <info@apphp.com>
* @license http://www.gnu.org/licenses/
*/
// *** Make sure the file isn't accessed directly
defined('APPHP_EXEC') or die('Restricted Access');
//--------------------------------------------------------------------------
if (!$objLogin->IsLoggedIn() && ModulesSettings::Get('customers', 'allow_registration') == 'yes') {
    draw_title_bar(_REGISTRATION_CONFIRMATION);
    echo $msg;
    echo '<div class="pages_contents">';
    if (!$confirmed) {
        echo '<br />
		<form action="index.php?customer=confirm_registration" method="post" name="frmConfirmCode" id="frmConfirmCode">
			' . draw_token_field(false) . '
			' . draw_hidden_field('task', 'post_submission', false) . '
		
			' . _ENTER_CONFIRMATION_CODE . ':			
			<input type="text" name="c" id="c" value="" size="27" maxlength="25" /><br /><br />
			<input class="form_button" type="submit" name="btnSubmit" id="btnSubmit" value="Submit">						
		</form>
		<script type="text/javascript">appSetFocus("c")</script>';
    }
    echo '</div>';
} else {
    draw_title_bar(prepare_breadcrumbs(array(_CUSTOMER => '', _REGISTRATION_CONFIRMATION => '')));
    draw_important_message(_NOT_AUTHORIZED);
}
开发者ID:mozdial,项目名称:Directory,代码行数:30,代码来源:confirm_registration.php

示例2: defined

<?php

// *** Make sure the file isn't accessed directly
defined('APPHP_EXEC') or die('Restricted Access');
//--------------------------------------------------------------------------
if (Modules::IsModuleInstalled('payments') && ModulesSettings::Get('payments', 'is_active') == 'yes') {
    draw_title_bar(prepare_breadcrumbs(array(_MY_ACCOUNT => '', _ADVERTISE => '', _ORDER_CANCELED => '')));
    draw_content_start();
    draw_message(_ORDER_WAS_CANCELED_MSG, true, true);
    draw_content_end();
} else {
    draw_important_message(_NOT_AUTHORIZED);
}
开发者ID:mozdial,项目名称:Directory,代码行数:13,代码来源:payment_cancel.php

示例3: str_replace

    ?>
	<div style="padding:5px 0;">
	<?php 
    $msg = '<div style="padding:9px;min-height:250px">';
    $welcome_text = _WELCOME_CUSTOMER_TEXT;
    $welcome_text = str_replace('_FIRST_NAME_', $objLogin->GetLoggedFirstName(), $welcome_text);
    $welcome_text = str_replace('_LAST_NAME_', $objLogin->GetLoggedLastName(), $welcome_text);
    $welcome_text = str_replace('_TODAY_', _TODAY . ': <b>' . format_datetime(@date('Y-m-d H:i:s'), '', '', true) . '</b>', $welcome_text);
    $welcome_text = str_replace('_LAST_LOGIN_', _LAST_LOGIN . ': <b>' . format_datetime($objLogin->GetLastLoginTime(), '', _NEVER, true) . '</b>', $welcome_text);
    $welcome_text = str_replace('_HOME_', _HOME, $welcome_text);
    $welcome_text = str_replace('_EDIT_MY_ACCOUNT_', _EDIT_MY_ACCOUNT, $welcome_text);
    $welcome_text = str_replace('_MY_LISTINGS_', _MY_LISTINGS, $welcome_text);
    $welcome_text = str_replace('_ADVERTISE_', _ADVERTISE, $welcome_text);
    $welcome_text = str_replace('_ORDERS_PAGE_DESCR_', Modules::IsModuleInstalled('payments') == 'yes' ? _DASHBOARD_ORDERS_LINK : '', $welcome_text);
    $welcome_text = str_replace('_INQUIRIES_PAGE_DESCR_', Modules::IsModuleInstalled('inquiries') == 'yes' ? _DASHBOARD_INQUIRIES_LINK : '', $welcome_text);
    $msg .= $welcome_text;
    $msg .= '<p><br /></p>';
    $msg .= '</div>';
    draw_message($msg, true, false);
    ?>
    </div>
<?php 
} else {
    if ($objLogin->IsLoggedIn()) {
        draw_title_bar(prepare_breadcrumbs(array(_GENERAL => '')));
        draw_important_message(_NOT_AUTHORIZED);
    } else {
        draw_title_bar(prepare_breadcrumbs(array(_CUSTOMER => '')));
        draw_important_message(_MUST_BE_LOGGED);
    }
}
开发者ID:mozdial,项目名称:Directory,代码行数:31,代码来源:home.php

示例4: defined

/**
* @project ApPHP Business Directory
* @copyright (c) 2011 ApPHP
* @author ApPHP <info@apphp.com>
* @license http://www.gnu.org/licenses/
*/
// *** Make sure the file isn't accessed directly
defined('APPHP_EXEC') or die('Restricted Access');
//--------------------------------------------------------------------------
$listing_type = Application::Get('type');
$listing_type_title = '';
if ($listing_type == 'featured') {
    $listing_type_title = _FEATURED_LISTINGS;
} else {
    if ($listing_type == 'recent') {
        $listing_type_title = _RECENT_LISTINGS;
    }
}
draw_title_bar(prepare_breadcrumbs(array(_LISTINGS => '', $listing_type_title => '')));
if (!empty($listing_type_title)) {
    if ($listing_type == 'featured') {
        Listings::DrawFeaturedAll();
    } else {
        if ($listing_type == 'recent') {
            Listings::DrawRecentAll();
        }
    }
} else {
    draw_important_message(_PAGE_UNKNOWN);
}
开发者ID:mozdial,项目名称:Directory,代码行数:30,代码来源:listings.php

示例5: isset

$email = isset($_POST['email']) ? prepare_input($_POST['email']) : '';
$msg = '';
if ($act == 'resend') {
    if (!$password_sent) {
        if (Customers::Reactivate($email)) {
            $msg = draw_success_message(str_replace('_EMAIL_', $email, _ACTIVATION_EMAIL_WAS_SENT), false);
            Session::Set('activation_email_resent', true);
        } else {
            $msg = draw_important_message(Customers::GetStaticError(), false);
        }
    } else {
        $msg = draw_message(_ACTIVATION_EMAIL_ALREADY_SENT, false);
    }
}
// Draw title bar
draw_title_bar(_RESEND_ACTIVATION_EMAIL);
// Check if customer is logged in
if (!$objLogin->IsLoggedIn() && ModulesSettings::Get('customers', 'allow_registration') == 'yes') {
    echo $msg;
    ?>
	<div class="pages_contents">
	<form action="index.php?customer=resend_activation" method="post">
		<?php 
    draw_hidden_field('act', 'resend');
    ?>
		<?php 
    draw_hidden_field('type', 'customer');
    ?>
		<?php 
    draw_token_field();
    ?>
开发者ID:mozdial,项目名称:Directory,代码行数:31,代码来源:resend_activation.php

示例6: defined

<?php

/**
* @project ApPHP Business Directory
* @copyright (c) 2011 ApPHP
* @author ApPHP <info@apphp.com>
* @license http://www.gnu.org/licenses/
*/
// *** Make sure the file isn't accessed directly
defined('APPHP_EXEC') or die('Restricted Access');
//--------------------------------------------------------------------------
$objCategory = Categories::Instance();
$objListings = Listings::Instance();
$category_info = $objCategory->GetLevelsInfo(Application::Get('category_id'));
$button = '';
if (Modules::IsModuleInstalled('inquiries')) {
    $listings_locations = isset($_REQUEST['listings_locations']) ? (int) $_REQUEST['listings_locations'] : '';
    $listings_sub_locations = isset($_REQUEST['listings_sub_locations']) ? (int) $_REQUEST['listings_sub_locations'] : '';
    if (!empty($category_info['first']['id'])) {
        $button = '<input type="button" class="form_button" value="' . _SUBMIT_INQUIRY . '" onclick="appGoToPage(\'index.php?page=inquiry_form\',\'&inquiry_category=' . $category_info['first']['id'] . '&visitor_locations=' . $listings_locations . '&visitor_sub_locations=' . $listings_sub_locations . '\',\'post\')">';
    }
}
draw_title_bar(prepare_breadcrumbs(array(_CATEGORIES => prepare_link('categories', '', '', 'all', _SEE_ALL, '', '', true), $category_info['third']['name'] => $category_info['third']['link'], $category_info['second']['name'] => $category_info['second']['link'], $category_info['first']['name'] => '')), $button);
$objCategory->DrawSubCategories(Application::Get('category_id'), 'listings');
$objListings->DrawListings(Application::Get('category_id'));
开发者ID:mozdial,项目名称:Directory,代码行数:25,代码来源:category.php

示例7: defined

<?php

/**
* @project ApPHP Business Directory
* @copyright (c) 2011 ApPHP
* @author ApPHP <info@apphp.com>
* @license http://www.gnu.org/licenses/
*/
// *** Make sure the file isn't accessed directly
defined('APPHP_EXEC') or die('Restricted Access');
//--------------------------------------------------------------------------
// Draw title bar
draw_title_bar(prepare_breadcrumbs(array(_ACCOUNTS => '', _ADMIN_LOGIN => '')));
// Check if admin is logged in
if (!$objLogin->IsLoggedIn()) {
    if ($objLogin->IsWrongLogin()) {
        draw_important_message($objLogin->GetLoginError());
    }
    ?>
	<div class="pages_contents">
	<form action="index.php?admin=login" method="post">
		<?php 
    draw_hidden_field('submit_login', 'login');
    ?>
		<?php 
    draw_hidden_field('type', 'admin');
    ?>
		<?php 
    draw_token_field();
    ?>
		
开发者ID:mozdial,项目名称:Directory,代码行数:30,代码来源:login.php

示例8: DrawTitle

 /**
  * Draw page title
  * 		@param $additional_text
  */
 public function DrawTitle($additional_text = '', $draw = true)
 {
     $output = '';
     if (isset($this->page['page_title'])) {
         $page_title = decode_text($this->page['page_title']);
         $output = draw_title_bar($page_title, $additional_text, false);
     }
     if ($draw) {
         echo $output;
     } else {
         return $output;
     }
 }
开发者ID:mozdial,项目名称:Directory,代码行数:17,代码来源:Pages.class.php

示例9: draw_title_bar

                    }
                }
            }
        }
        // Start main content
        draw_title_bar(prepare_breadcrumbs(array(_LISTINGS_MANAGEMENT => '', _CATEGORY_DESCRIPTION => '', $category_info_name => '', ucfirst($action) => '')), prepare_permanent_link('index.php?admin=mod_categories&cid=' . (int) $cid, _BUTTON_BACK));
        echo $msg;
        draw_content_start();
        if ($mode == 'view') {
            $objCategoryDescr->DrawViewMode();
        } else {
            if ($mode == 'add') {
                $objCategoryDescr->DrawAddMode();
            } else {
                if ($mode == 'edit') {
                    $objCategoryDescr->DrawEditMode($rid);
                } else {
                    if ($mode == 'details') {
                        $objCategoryDescr->DrawDetailsMode($rid);
                    }
                }
            }
        }
        draw_content_end();
    } else {
        draw_title_bar(prepare_breadcrumbs(array(_LISTINGS_MANAGEMENT => '', _CATEGORY_DESCRIPTION => '')));
        draw_important_message(_WRONG_PARAMETER_PASSED);
    }
} else {
    draw_important_message(_NOT_AUTHORIZED);
}
开发者ID:mozdial,项目名称:Directory,代码行数:31,代码来源:mod_categories_description.php

示例10: defined

// *** Make sure the file isn't accessed directly
defined('APPHP_EXEC') or die('Restricted Access');
//--------------------------------------------------------------------------
$objNews = News::Instance();
$news = $objNews->GetNews(Application::Get('news_id'));
// Draw title bar
if ($objSession->IsMessage('notice')) {
    draw_title_bar(_NEWS);
    echo $objSession->GetMessage('notice');
} else {
    if ($news[1] == 1) {
        $news_type = isset($news[0]['type']) ? $news[0]['type'] : 'news';
        $header_text = isset($news[0]['header_text']) ? str_replace("\\'", "'", $news[0]['header_text']) : '';
        $body_text = isset($news[0]['body_text']) ? str_replace("\\'", "'", $news[0]['body_text']) : '';
        $date_created = isset($news[0]['mod_date_created']) ? $news[0]['mod_date_created'] : '';
        if ($news_type == 'events') {
            draw_title_bar(prepare_breadcrumbs(array(_EVENTS => '', $header_text => '')));
        } else {
            draw_title_bar(prepare_breadcrumbs(array(_NEWS => '', $header_text => '')));
        }
        echo '<div class="center_box_heading_news">' . $header_text . '</div>';
        echo '<div class="center_box_contents_news">' . $body_text . '</div>';
        echo '<div class="center_box_bottom_news"><i><b>' . _POSTED_ON . ':</b>&nbsp;' . $date_created . '</i></div>';
        if ($news_type == 'events') {
            $objNews->DrawRegistrationForm(Application::Get('news_id'), $header_text);
        }
    } else {
        draw_title_bar(_NEWS);
        draw_important_message(_WRONG_PARAMETER_PASSED);
    }
}
开发者ID:mozdial,项目名称:Directory,代码行数:31,代码来源:news.php

示例11: isset

    $additional_info = isset($_POST['additional_info']) ? prepare_input($_POST['additional_info']) : '';
    $order_number = isset($_POST['order_number']) ? prepare_input($_POST['order_number']) : '';
    if ($payment_method == 'paypal') {
        $title_desc = _PAYPAL_ORDER;
    } else {
        if ($payment_method == '2co') {
            $title_desc = _2CO_ORDER;
        } else {
            if ($payment_method == 'authorize') {
                $title_desc = _AUTHORIZE_NET_ORDER;
            } else {
                $title_desc = _ONLINE_ORDER;
            }
        }
    }
    draw_title_bar(prepare_breadcrumbs(array(_MY_ACCOUNT => '', _CHECKOUT => '', $title_desc => '')), prepare_permanent_link('index.php?customer=advertise', _BUTTON_BACK));
    // test mode alert
    if (ModulesSettings::Get('payments', 'mode') == 'TEST MODE') {
        draw_message(_TEST_MODE_ALERT_SHORT, true, true);
    }
    if ($task == "place_order") {
        if (AdvertisePlans::PlaceOrder($order_number, $cc_params)) {
            draw_success_message(_ORDER_PLACED_MSG);
        } else {
            draw_important_message(AdvertisePlans::$message);
        }
    } else {
        draw_important_message(_WRONG_PARAMETER_PASSED);
    }
} else {
    draw_important_message(_NOT_AUTHORIZED);
开发者ID:mozdial,项目名称:Directory,代码行数:31,代码来源:order_proccess.php

示例12: draw_title_bar

		<tr>
			<td align="left" colspan="2">
				<input type="button" class="form_button" value="<?php 
        echo _BUTTON_CANCEL;
        ?>
" onclick="javascript:appGoTo('customer=my_account');" />
			</td>
			<td align="right">
				<input type="submit" class="form_button" name="btnSubmitPD" id="btnSubmitPD" value="<?php 
        echo _REMOVE;
        ?>
" />
			</td>
		</tr>
		<tr><td colspan="3">&nbsp;</td></tr>            
		</table>
		<?php 
    }
    ?>
	</form>

<?php 
} else {
    if ($objLogin->IsLoggedIn()) {
        draw_title_bar(prepare_breadcrumbs(array(_CUSTOMER => '', _REMOVE_ACCOUNT => '')));
        draw_important_message(_NOT_AUTHORIZED);
    } else {
        draw_title_bar(prepare_breadcrumbs(array(_CUSTOMER => '', _REMOVE_ACCOUNT => '')));
        draw_important_message(_MUST_BE_LOGGED);
    }
}
开发者ID:mozdial,项目名称:Directory,代码行数:31,代码来源:remove_account.php

示例13: isset

    ?>
js/jquery-1.6.3.min.js"></script>
    <base href="<?php 
    echo $host;
    ?>
" />
    <style>
        body { text-align:left; }
</style>
</head>    
<body>
    <?php 
    $inquiry_category = isset($params['inquiry_category']) ? prepare_input($params['inquiry_category']) : '';
    $category_info = Categories::GetCategoryInfo($inquiry_category);
    $category_name = isset($category_info['name']) ? _SEND_INQUIRY_TO . ' ' . $category_info['name'] : _SEND_INQUIRY;
    $business_name = isset($params['business_name']) ? $params['business_name'] : '';
    $params['widget'] = true;
    $params['widget_host'] = $host_not_decoded;
    $params['widget_key'] = $key_not_decoded;
    if (!empty($msg)) {
        echo $msg;
    } else {
        draw_title_bar(_SEND_INQUIRY);
    }
    Inquiries::DrawInquiryForm($params);
    ?>
    
</body>
</html>
<?php 
}
开发者ID:mozdial,项目名称:Directory,代码行数:31,代码来源:index.php

示例14: draw_title_bar

                         }
                     }
                 }
             }
         }
     }
 }
 // Start main content
 if ($mode == 'invoice') {
     $links = '<a href="javascript:void(\'invoice|preview\')" onclick="javascript:appPreview(\'invoice\');"><img src="images/printer.png" alt="" /> ' . _PRINT . '</a>';
 } else {
     if ($mode == 'description') {
         $links = '<a href="javascript:void(\'description|preview\')" onclick="javascript:appPreview(\'description\');"><img src="images/printer.png" alt="" /> ' . _PRINT . '</a>';
     }
 }
 draw_title_bar(prepare_breadcrumbs(array(_MY_ACCOUNT => "", _ORDERS_MANAGEMENT => "", ucfirst($action) => "")), $links);
 //if($user_session->IsMessage('notice')) echo $user_session->GetMessage('notice');
 echo $msg;
 draw_content_start();
 if ($mode == "view") {
     $objOrders->DrawViewMode();
 } else {
     if ($mode == "add") {
         $objOrders->DrawAddMode();
     } else {
         if ($mode == "edit") {
             $objOrders->DrawEditMode($rid);
         } else {
             if ($mode == "details") {
                 $objOrders->DrawDetailsMode($rid);
             } else {
开发者ID:mozdial,项目名称:Directory,代码行数:31,代码来源:my_orders.php

示例15: draw_title_bar

<?php

/**
* @project ApPHP Business Directory
* @copyright (c) 2012 ApPHP
* @author ApPHP <info@apphp.com>
* @license http://www.gnu.org/licenses/
*/
// draw title bar
draw_title_bar(_PAGES);
draw_content_start();
draw_important_message(_PAGE_NOT_EXISTS);
draw_content_end();
开发者ID:mozdial,项目名称:Directory,代码行数:13,代码来源:404.php


注:本文中的draw_title_bar函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。