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


PHP prepare_breadcrumbs函数代码示例

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


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

示例1: 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 => '', _CUSTOMER_LOGIN => '')));
// Check if customer is logged in
if (!$objLogin->IsLoggedIn() && ModulesSettings::Get('customers', 'allow_login') == 'yes') {
    if ($objLogin->IsWrongLogin()) {
        draw_important_message($objLogin->GetLoginError()) . '<br />';
    } else {
        if ($objLogin->IsIpAddressBlocked()) {
            draw_important_message(_IP_ADDRESS_BLOCKED) . '<br />';
        } else {
            if ($objLogin->IsEmailBlocked()) {
                draw_important_message(_EMAIL_BLOCKED) . '<br />';
            } else {
                if ($objSession->IsMessage('notice')) {
                    draw_message($objSession->GetMessage('notice'));
                }
            }
        }
    }
    $remember_me = isset($_POST['remember_me']) ? (int) $_POST['remember_me'] : '';
开发者ID:mozdial,项目名称:Directory,代码行数:31,代码来源:login.php

示例2: draw_title_bar

            }
        }
        // Start main content
        draw_title_bar(prepare_breadcrumbs(array(_MODULES => '', _GALLERY_MANAGEMENT => '', _ALBUM => '', $album_info[0]['name'] => '', ucfirst($action) => '')), prepare_permanent_link('index.php?admin=mod_gallery_management', _BUTTON_BACK));
        //if($objSession->IsMessage('notice')) echo $objSession->GetMessage('notice');
        echo $msg;
        draw_content_start();
        if ($mode == 'view') {
            $objAlbumItems->DrawViewMode();
        } else {
            if ($mode == 'add') {
                $objAlbumItems->DrawAddMode();
            } else {
                if ($mode == 'edit') {
                    $objAlbumItems->DrawEditMode($rid);
                } else {
                    if ($mode == 'details') {
                        $objAlbumItems->DrawDetailsMode($rid);
                    }
                }
            }
        }
        draw_content_end();
    } else {
        draw_title_bar(prepare_breadcrumbs(array(_MODULES => '', _GALLERY_MANAGEMENT => '', _ALBUM => '')), prepare_permanent_link('index.php?admin=mod_gallery_management', _BUTTON_BACK));
        draw_important_message(_WRONG_PARAMETER_PASSED);
    }
} else {
    draw_title_bar(_ADMIN);
    draw_important_message(_NOT_AUTHORIZED);
}
开发者ID:mozdial,项目名称:Directory,代码行数:31,代码来源:mod_gallery_upload_items.php

示例3: 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

示例4: draw_title_bar

                             $mode = 'view';
                         } else {
                             if ($action == 'cancel_edit') {
                                 $mode = 'view';
                             }
                         }
                     }
                 }
             }
         }
     }
 }
 $objListings = Listings::Instance($listing_id);
 $listing_info_name = $objListings->GetField('business_name');
 // Start main content
 draw_title_bar(prepare_breadcrumbs(array(_MY_ACCOUNT => '', _MY_LISTINGS => '', $listing_info_name => '', _CATEGORIES => '', ucfirst($action) => '')), prepare_permanent_link('index.php?customer=my_listings', _BUTTON_BACK));
 //if($objSession->IsMessage('notice')) echo $objSession->GetMessage('notice');
 echo $msg;
 draw_content_start();
 if ($mode == 'view') {
     $objListingsCategories->DrawViewMode();
 } else {
     if ($mode == 'add') {
         $objListingsCategories->DrawAddMode();
     } else {
         if ($mode == 'edit') {
             $objListingsCategories->DrawEditMode($rid);
         } else {
             if ($mode == 'details') {
                 $objListingsCategories->DrawDetailsMode($rid);
             }
开发者ID:mozdial,项目名称:Directory,代码行数:31,代码来源:listings_categories.php

示例5: draw_title_bar

                     } else {
                         if ($action == 'cancel_add') {
                             $mode = 'view';
                         } else {
                             if ($action == 'cancel_edit') {
                                 $mode = 'view';
                             }
                         }
                     }
                 }
             }
         }
     }
 }
 // Start main content
 draw_title_bar(prepare_breadcrumbs(array(_PAYMENTS => '', _ADVERTISE_PLANS => '', ucfirst($action) => '')));
 //if($objSession->IsMessage('notice')) echo $objSession->GetMessage('notice');
 echo $msg;
 draw_content_start();
 if ($mode == 'view') {
     $objAdvertisePlans->DrawViewMode();
 } else {
     if ($mode == 'add') {
         $objAdvertisePlans->DrawAddMode();
     } else {
         if ($mode == 'edit') {
             $objAdvertisePlans->DrawEditMode($rid);
         } else {
             if ($mode == 'details') {
                 $objAdvertisePlans->DrawDetailsMode($rid);
             }
开发者ID:mozdial,项目名称:Directory,代码行数:31,代码来源:mod_payments_advertise_plans.php

示例6: defined

*/
// *** Make sure the file isn't accessed directly
defined('APPHP_EXEC') or die('Restricted Access');
//--------------------------------------------------------------------------
if ($objLogin->IsLoggedInAs('owner') && Modules::IsModuleInstalled('backup')) {
    $submition_type = isset($_POST['submition_type']) ? prepare_input($_POST['submition_type']) : '';
    $backup_file = isset($_POST['backup_file']) ? prepare_input($_POST['backup_file']) : '';
    $st = isset($_GET['st']) ? prepare_input($_GET['st']) : '';
    $fname = isset($_GET['fname']) ? prepare_input($_GET['fname']) : '';
    $msg = '';
    $objBackup = new Backup();
    if ($st == 'restore') {
        // restore previouse backup
        if ($objBackup->RestoreBackup($fname)) {
            $msg = draw_success_message(str_replace('_FILE_NAME_', $fname, _BACKUP_WAS_RESTORED), false);
        } else {
            $msg = draw_important_message($objBackup->error, false);
        }
    } else {
        $msg = draw_message(_BACKUP_RESTORE_NOTE, false);
    }
    // draw title bar and message
    draw_title_bar(prepare_breadcrumbs(array(_MODULES => '', _BACKUP => '', _BACKUP_RESTORE => '')), prepare_permanent_link('index.php?admin=mod_backup_installation', _BACKUP_INSTALLATION));
    echo $msg;
    draw_content_start();
    $objBackup->DrawRestoreForm();
    draw_content_end();
} else {
    draw_title_bar(_ADMIN);
    draw_important_message(_NOT_AUTHORIZED);
}
开发者ID:mozdial,项目名称:Directory,代码行数:31,代码来源:mod_backup_restore.php

示例7: draw_success_message

                                         $msg = draw_success_message(_EMAIL_SUCCESSFULLY_SENT, false);
                                     } else {
                                         $msg = draw_important_message(Customers::GetStaticError(), false);
                                     }
                                     $mode = 'view';
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
 }
 // Start main content
 draw_title_bar(prepare_breadcrumbs(array(_ACCOUNTS => '', _CUSTOMERS_MANAGEMENT => '', _CUSTOMERS => '', ucfirst($action) => '')));
 //if($objSession->IsMessage('notice')) echo $objSession->GetMessage('notice');
 echo $msg;
 draw_content_start();
 if ($mode == 'view') {
     $objCustomers->DrawOperationLinks(prepare_permanent_link('index.php?admin=mod_customers_groups', '[ ' . _CUSTOMER_GROUPS . ' ]'));
     $objCustomers->DrawViewMode();
 } else {
     if ($mode == 'add') {
         $objCustomers->DrawAddMode();
     } else {
         if ($mode == 'edit') {
             $objCustomers->DrawEditMode($rid);
         } else {
             if ($mode == 'details') {
                 $objCustomers->DrawDetailsMode($rid);
开发者ID:mozdial,项目名称:Directory,代码行数:31,代码来源:mod_customers_management.php

示例8: 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

示例9: draw_title_bar

                     } else {
                         if ($action == 'cancel_add') {
                             $mode = 'view';
                         } else {
                             if ($action == 'cancel_edit') {
                                 $mode = 'view';
                             }
                         }
                     }
                 }
             }
         }
     }
 }
 // Start main content
 draw_title_bar(prepare_breadcrumbs(array(_GENERAL => '', _BAN_LIST => '', ucfirst($action) => '')));
 //if($objSession->IsMessage('notice')) echo $objSession->GetMessage('notice');
 echo $msg;
 draw_content_start();
 if ($mode == 'view') {
     $objBanList->DrawViewMode();
 } else {
     if ($mode == 'add') {
         $objBanList->DrawAddMode();
     } else {
         if ($mode == 'edit') {
             $objBanList->DrawEditMode($rid);
         } else {
             if ($mode == 'details') {
                 $objBanList->DrawDetailsMode($rid);
             }
开发者ID:mozdial,项目名称:Directory,代码行数:31,代码来源:ban_list.php

示例10: Admins

    } else {
        if (!$password_sent) {
            $objAdmin = new Admins($objSession->GetSessionVariable('session_account_id'));
            if ($objAdmin->SendPassword($email)) {
                $msg = draw_success_message(_PASSWORD_SUCCESSFULLY_SENT, false);
                Session::Set('password_sent', true);
            } else {
                $msg = draw_important_message($objAdmin->error, false);
            }
        } else {
            $msg = draw_message(_PASSWORD_ALREADY_SENT, false);
        }
    }
}
// Draw title bar
draw_title_bar(prepare_breadcrumbs(array(_ADMIN => '', _PASSWORD_FORGOTTEN => '')));
// Check if user is logged in
if (!$objLogin->IsLoggedIn()) {
    echo $msg;
    ?>
	<div class="pages_contents">
	<form action="index.php?admin=password_forgotten" method="post">
		<?php 
    draw_hidden_field('act', 'send');
    ?>
		<?php 
    draw_token_field();
    ?>
		
		<table class="loginForm" width="99%" border="0">
		<tr>
开发者ID:mozdial,项目名称:Directory,代码行数:31,代码来源:password_forgotten.php

示例11: pixels

    ## | 2. Customizing:                                                           |
    ## +---------------------------------------------------------------------------+
    ## *** set container's width in pixels (px), inches (in) or points (pt)
    $tabs->SetWidth('696px');
    ## *** set container's height in pixels (px), inches (in) or points (pt)
    $tabs->SetHeight('auto');
    // 'auto'
    ## *** set alignment inside the container (left, center or right)
    $tabs->SetAlign('left');
    ## *** set container's color in RGB format or using standard names
    /// $tabs->SetContainerColor('#64C864');
    ## *** set border's width in pixels (px), inches (in) or points (pt)
    /// $tabs->SetBorderWidth('5px');
    ## *** set border's color in RGB format or using standard names
    /// $tabs->SetBorderColor('#64C864');
    /// $tabs->SetBorderColor('blue');
    /// $tabs->SetBorderColor('#445566');
    ## *** show debug info - false|true
    $tabs->Debug(false);
    ## *** allow refresh selected tabs - false|true
    /// $tabs->AllowRefreshSelectedTabs(true);
    ## *** set form submission type: 'get' or 'post'
    $tabs->SetSubmissionType('post');
    draw_title_bar(prepare_breadcrumbs(array(_GENERAL => '', _STATISTICS => '')));
    draw_content_start();
    $tabs->Display();
    draw_content_end();
} else {
    draw_title_bar(_ADMIN);
    draw_important_message(_NOT_AUTHORIZED);
}
开发者ID:mozdial,项目名称:Directory,代码行数:31,代码来源:statistics.php

示例12: draw_title_bar

                }
            }
        }
        // Start main content
        draw_title_bar(prepare_breadcrumbs(array(_MODULES => '', _FAQ => '', _FAQ_MANAGEMENT => '', $faq_info['name'] => '', ucfirst($action) => '')), prepare_permanent_link('index.php?admin=mod_faq_management', _BUTTON_BACK));
        echo $msg;
        draw_content_start();
        if ($mode == 'view') {
            $objFaqCategoryItems->DrawViewMode();
        } else {
            if ($mode == 'add') {
                $objFaqCategoryItems->DrawAddMode();
            } else {
                if ($mode == 'edit') {
                    $objFaqCategoryItems->DrawEditMode($rid);
                } else {
                    if ($mode == 'details') {
                        $objFaqCategoryItems->DrawDetailsMode($rid);
                    }
                }
            }
        }
        draw_content_end();
    } else {
        draw_title_bar(prepare_breadcrumbs(array(_MODULES => '', _FAQ_MANAGEMENT => '', _QUESTIONS => '')), prepare_permanent_link('index.php?admin=mod_faq_management', _BUTTON_BACK));
        draw_important_message(_WRONG_PARAMETER_PASSED);
    }
} else {
    draw_title_bar(_ADMIN);
    draw_important_message(_NOT_AUTHORIZED);
}
开发者ID:mozdial,项目名称:Directory,代码行数:31,代码来源:mod_faq_questions_management.php

示例13: draw_title_bar

                     } else {
                         if ($action == 'cancel_add') {
                             $mode = 'view';
                         } else {
                             if ($action == 'cancel_edit') {
                                 $mode = 'view';
                             }
                         }
                     }
                 }
             }
         }
     }
 }
 // Start main content
 draw_title_bar(prepare_breadcrumbs(array(_LISTINGS_MANAGEMENT => '', _LISTINGS => '', $listing_info_name => '', _CATEGORIES => '', ucfirst($action) => '')), prepare_permanent_link('index.php?admin=mod_listings_management', _BUTTON_BACK));
 //if($objSession->IsMessage('notice')) echo $objSession->GetMessage('notice');
 echo $msg;
 draw_content_start();
 if ($mode == 'view') {
     $objListingsCategories->DrawViewMode();
 } else {
     if ($mode == 'add') {
         $objListingsCategories->DrawAddMode();
     } else {
         if ($mode == 'edit') {
             $objListingsCategories->DrawEditMode($rid);
         } else {
             if ($mode == 'details') {
                 $objListingsCategories->DrawDetailsMode($rid);
             }
开发者ID:mozdial,项目名称:Directory,代码行数:31,代码来源:mod_listings_categories.php

示例14: draw_title_bar

                }
            }
        }
        // Start main content
        draw_title_bar(prepare_breadcrumbs(array(_MY_ACCOUNT => '', _INQUIRIES => '', 'ID:' . $inq_id => '', _INQUIRIES_REPLIES => '', ucfirst($action) => '')), prepare_permanent_link('index.php?customer=inquiries', _BUTTON_BACK));
        echo $msg;
        draw_content_start();
        if ($mode == 'view') {
            $objInquiriesReplies->DrawViewMode();
        } else {
            if ($mode == 'add') {
                $objInquiriesReplies->DrawAddMode(array('cancel' => false));
            } else {
                if ($mode == 'edit') {
                    $objInquiriesReplies->DrawEditMode($rid);
                } else {
                    if ($mode == 'details') {
                        $objInquiriesReplies->DrawDetailsMode($rid);
                    }
                }
            }
        }
        draw_content_end();
    } else {
        draw_title_bar(prepare_breadcrumbs(array(_MY_ACCOUNT => '', _INQUIRIES => '', _INQUIRIES_REPLIES => '')));
        draw_important_message(_WRONG_PARAMETER_PASSED);
    }
} else {
    draw_title_bar(_CUSTOMER);
    draw_important_message(_NOT_AUTHORIZED);
}
开发者ID:mozdial,项目名称:Directory,代码行数:31,代码来源:inquiries_reply.php

示例15: draw_title_bar

            }
        }
        // Start main content
        draw_title_bar(prepare_breadcrumbs(array(_ACCOUNTS => '', $role_info_name => '', _PRIVILEGES_MANAGEMENT => '', ucfirst($action) => '')), prepare_permanent_link('index.php?admin=roles_management', _BUTTON_BACK));
        //if($objSession->IsMessage('notice')) echo $objSession->GetMessage('notice');
        echo $msg;
        draw_content_start();
        if ($mode == 'view') {
            $objRolePrivileges->DrawViewMode();
        } else {
            if ($mode == 'add') {
                $objRolePrivileges->DrawAddMode();
            } else {
                if ($mode == 'edit') {
                    $objRolePrivileges->DrawEditMode($rid);
                } else {
                    if ($mode == 'details') {
                        $objRolePrivileges->DrawDetailsMode($rid);
                    }
                }
            }
        }
        draw_content_end();
    } else {
        draw_title_bar(prepare_breadcrumbs(array(_ACCOUNTS => '', _PRIVILEGES_MANAGEMENT => '')));
        draw_important_message(_WRONG_PARAMETER_PASSED);
    }
} else {
    draw_title_bar(_ADMIN);
    draw_important_message(_NOT_AUTHORIZED);
}
开发者ID:mozdial,项目名称:Directory,代码行数:31,代码来源:role_privileges_management.php


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