コード例 #1
0
ファイル: hl.php プロジェクト: pkgw/hera-librarian
$action = get_str("action", true);
if ($action == "login") {
    login_action();
    exit;
}
$source = get_login();
if (!$source) {
    login_page();
    exit;
}
switch ($action) {
    case 'edit_store_action':
        edit_store_action();
        break;
    case 'edit_store_form':
        edit_store_form();
        break;
    case 'file_search_action':
        file_search_action();
        break;
    case 'file_search_form':
        file_search_form();
        break;
    case 'logout':
        logout();
        break;
    case 'obs_search_action':
        obs_search_action();
        break;
    case 'store':
        show_store();
コード例 #2
0
ファイル: owner_actions.php プロジェクト: hzhou9/coupon_deal
  </section>
  <div style="margin-top: 20px; text-align: center;"><a href="' . tlink('user/plans') . '" class="btn">Add Credits</a></div>';
            }
            echo '</div>';
            break;
            /*
            EDIT STORE
            */
        /*
        EDIT STORE
        */
        case 'edit_store':
            $my_credits = $GLOBALS['me']->Credits;
            echo '<div class="left">
<div class="title">Edit Store/Brand</div>';
            echo edit_store_form(isset($_GET['id']) ? $_GET['id'] : 0);
            echo '</div>

<div class="right">';
            echo '<section class="cost-sect">
  <h2>Cost (credits): <span>0</span></h2>
  <h3>It\'s always free to edit your stores. <br /> Your balance is: <span>' . $my_credits . '</span> credits.</h3>
  </section>
  <div style="margin-top: 20px; text-align: center;"><a href="' . tlink('user/plans') . '" class="btn">Add Credits</a></div>
</div>';
            break;
            /*
            ERROR 404
            */
        /*
        ERROR 404