Пример #1
0
 public function loginForm()
 {
     $company = $this->getSetting("mycompany");
     $this->export(base::subHeader($company, "Support and Project Management"));
     $button = button::init()->addStyle('post')->addStyle('btn-primary')->text('Login')->icon('arrow-right')->render();
     $button .= "<span class='pull-right'>" . button::init()->addStyle('btn-info')->icon('edit')->text('Create Account')->url('/login/signup/')->render() . "</span>";
     // Fix this... This is pitiful.
     $sendButton = button::init()->formid('forgotForm')->postVar('sendPassword')->id(true)->text("Send Password")->addStyle('mpost')->message("Sending Password..")->addStyle('btn-primary')->icon('arrow-right')->render();
     $this->exportModal(modal::init()->id('forgot')->header("Forgot Your Password?")->content($this->forgotForm())->footer($sendButton)->render());
     $this->export("\t\n\t\t\t<div id='notify-container' style='display:none'>\n\t\t\t\t<div id='default'>\n                \t<h1>#{title}</h1>\n                    <p>#{text}</p>\n                </div>\n\t\t\t</div>\n\t\t\t\t <style type='text/css'>\n            body {\n                padding-top: 40px;\n                padding-bottom: 40px;\n            }\n            .form-signin,\n            #signup {\n                max-width: 300px;\n                margin: 0 auto 20px;\n            }\n            .form-signin {\n                padding: 19px 29px 29px;\n                margin: 0 auto 20px;\n                background-color: #ffffff;\n                background-image: -moz-linear-gradient(top, #ffffff, #f2f2f2);\n                background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff),\n                    to(#f2f2f2) );\n                background-image: -webkit-linear-gradient(top, #ffffff, #f2f2f2);\n                background-image: -o-linear-gradient(top, #ffffff, #f2f2f2);\n                background-image: linear-gradient(to bottom, #ffffff, #f2f2f2);\n                filter: progid : dximagetransform.microsoft.gradient ( startColorstr =\n                    '#ffffffff', endColorstr = '#fff2f2f2', GradientType = 0 );\n                background-repeat: repeat-x;\n                -webkit-border-radius: 4px;\n                -moz-border-radius: 4px;\n                border-radius: 4px;\n                -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);\n                -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);\n                box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);\n            }\n            .form-signin .form-signin-heading {\n                margin-bottom: 20px;\n            }           \n            .form-signin .checkbox {\n                margin-bottom: 10px;\n            }\n            .form-signin input[type='text'],\n            .form-signin input[type='password'] {\n                height: auto;\n                margin-bottom: 15px;\n                padding: 7px 9px;\n            }\n            #signup {\n                text-align: center;\n            }\n        </style>\n            <div class='row'>\n\t\t\t\t<form class='form-signin' action='/login/' method='post' id='loginForm'>\n                <fieldset>\n                    <legend class='form-signin-heading'>Login or Create an Account</legend>\n                    <input type='text' name='email' class='input-block-level' placeholder='Email Address'>\n                    <input type='password' name='password' class='input-block-level' placeholder='Password'>\n                    <label class='checkbox'>\n                        <input type='checkbox' value='remember-me'> Remember me\n                    </label>\n                    {$button}\n                </fieldset>\n            </form>\n\n            <div id='signup'>\n                <p><a data-toggle='modal' data-target='#forgot' href='#'>Forgot your password?</a></p>\n            </div>\n\t\t\t\t</div>");
 }
Пример #2
0
}
$modal['response_favorite'] = $mc->fs_favorite_modals_Query(array('limit_start' => 0, 'limit_end' => 1, 'query_where' => "table_id = {$modal['table_id']} and mno = {$mno}", 'query_order' => 'fmno asc', 'query_favorite' => 'get-all-user-favorite'));
if (!empty($modal['response_favorite'])) {
    $modal['src_img_favorite'] = "look-icon-favorite-detail-yellow.png";
}
$response = $mc->fs_flag(array('type' => 'select', 'limit_start' => 0, 'limit_end' => 1, 'where' => "table_id  = {$plno} and table_name= 'postedlooks' and mno = {$mno} "));
if (!empty($response)) {
    $modal['src_img_flag'] = "large-flag-red.png";
}
# set status of owner or not for the user not allow to rate , drip and favorite the modal
if ($modal['mno'] == $mno) {
    $modal['stat_rated'] = 'modal owner';
    $modal['stat_dripted'] = 'modal owner';
    $modal['stat_favorited'] = 'modal owner';
}
$keyword = modal::conver_cetegory_to_keyword($pltags);
$title = page::set_url_for_modal_details($modal['table_id'], 'look', $style, $date_, $lookName);
// set url of the page
echo "</div>";
// echo " $keyword ";
// $lookName = 'Mauricio (member) has 7 people who signed up using the referral link.There are currently1000 people on the waiting list who has no association to any member on the';
// echo " this is the len of the string ".strlen($lookName);
?>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>New Details Page Development</title>
    <link rel="stylesheet" type="text/css" href="fs_folders/index_home/home_css/home.css">
Пример #3
0
 public function generateNav()
 {
     $data = null;
     if (!$this->user) {
         return null;
     }
     if ($this->isProvidingCompany()) {
         $data .= "\t<li class='dropdown'><a data-toggle='dropdown'\tclass='dropdown-toggle' href='/clients/'>\n\t\t\t\t\t\t\t\t\tClients <b class='caret'></b></a>\n\t\t\t\t\t\t\t\t\t<ul class='dropdown-menu'>\n\t\t\t\t\t\t\t\t\t\t\t<li class=''><a href='/clients/create/'>Create Client</a></li>\n\t\t\t\t\t\t\t\t\t\t\t<li class=''><a href='/clients/'>List Clients</a></li>\n\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\n\t\t\t\t\t";
     } else {
         $data .= "<li><a href='/billing/'>Billing</a></li>";
     }
     if ($this->isAdmin()) {
         $data .= "<li><a href='/admin/'>aTikit Admin</a></li>";
     }
     $data .= "<li class='dropdown'><a data-toggle='dropdown' class='dropdown-toggle' href='/clients/'>\n\t\t\t\t\tOptions <b class='caret'></b></a>\n\t\t\t\t\t<ul class='dropdown-menu'>\n\t\t\t\t\t\t<li><a data-toggle='modal' href='#me'><i class='icon-user'></i>  My Profile</a></li>\n\t\t\t\t\t\t<li><a href='/logout/'><i class='icon-signout'></i>  Logout</a></li>\n\t\t\t\t\t</ul>\n\t\t\t</li>";
     $save = button::init()->addStyle('mpost')->addStyle('btn-info')->text('Save Profile')->formid('myProfileForm')->postVar('saveProfile')->id('true')->icon('ok')->render();
     $this->exportModal(modal::init()->id('me')->header("My Profile")->content($this->getMyProfile())->footer($save)->render());
     return $data;
 }
Пример #4
0
 private function getSubTickets(&$ticket)
 {
     $subs = $this->query("SELECT * from subtickets WHERE ticket_id='{$ticket['id']}'");
     $addButton .= button::init()->isModalLauncher()->text('Add Task')->url('#addTask')->addStyle('btn-inverse')->addStyle('btn-block')->withGroup(false)->icon('plus')->render();
     $data = "<div class='row-fluid'>\n\t\t\t\t<div class='span6'>";
     $headers = ['Task', 'Assigned', 'Author', 'Last Updated'];
     foreach ($subs as $sub) {
         $color = $sub['subticket_isclosed'] ? "red" : "green";
         $ss = $sub['subticket_isclosed'] ? "<s>" : null;
         $se = $sub['subticket_isclosed'] ? "</s>" : null;
         $rows[] = ["<a class='get' href='/ticket/{$ticket['id']}/{$sub['id']}/'>{$ss}{$sub['subticket_title']}{$se}</a>", $sub['subticket_assigned'] ? "<a class='get' href='/assign/sub/{$sub['id']}/'>" . $this->getUserById($sub['subticket_assigned']) . "</a>" : "<a class='get' href='/assign/sub/{$sub['id']}/'>Unassigned</a>", $this->getUserById($sub['subticket_creator']), $this->fbTime($sub['subticket_lastupdated']), $color];
     }
     if (!$subs) {
         $data .= "<h4>No tasks found</h4>";
     } else {
         $data .= table::init()->id('tasks')->headers($headers)->rows($rows)->render();
     }
     $data .= "{$addButton}</div>";
     // Start Viewer on the next 6 span.
     $data .= "<div class='span6'>";
     $data .= widget::init()->header("<span class='viewportTitle'>Task Viewport</span>")->content("<div id='viewport'></div>")->icon('tasks')->render();
     $data .= "</div>";
     // end span6
     $data .= "</div>";
     // end rowfluid
     $save = button::init()->addStyle('mpost')->addStyle('btn-primary')->icon('ok')->text('Create Task')->formid('addTaskForm')->postVar('addTask')->id($ticket['id'])->render();
     $this->exportModal(modal::init()->header('Add Task')->content($this->addTaskForm())->id('addTask')->footer($save)->render());
     return $data;
 }
Пример #5
0
 private function customerMain()
 {
     // Show tabs for all queues the agent has access to based on access level.
     $headers = ['#', 'Subject', 'Status', 'Last Updated', 'Assigned', 'Queue'];
     $tickets = $this->query("SELECT * from tickets WHERE company_id='{$this->company->id}' and ticket_isclosed = false");
     $rows = [];
     foreach ($tickets as $ticket) {
         $rows[] = [$ticket['id'], "<a href='/ticket/{$ticket['id']}/'>{$ticket['ticket_title']}</a>", $ticket['ticket_status'], $this->fbTime($ticket['ticket_lastupdated']), $ticket['ticket_assigned'] ? $this->getUserByID($ticket['ticket_assigned']) : "Awaiting Assignment", $this->returnFieldFromTable("queue_name", "queues", "id='{$ticket['queue_id']}'")];
     }
     $table = table::init()->headers($headers)->rows($rows)->render();
     $createTicket = button::init()->isModalLauncher()->url('#newTicket')->text('Create New Ticket')->addStyle('btn-inverse')->icon('tasks')->render();
     $widget = widget::init()->span(12)->header('Ticket List')->content($table)->isTable(true)->rightHeader($createTicket)->render();
     $data = base::row($widget);
     $save = button::init()->formid('newTicketForm')->addStyle('mpost')->postVar('createTicket')->text('Create Ticket')->addStyle('btn-success')->icon('ok')->render();
     $this->exportModal(modal::init()->id('newTicket')->header('Create New Ticket')->content($this->createTicketForm())->footer($save)->render());
     return $data;
 }
Пример #6
0
 private function dwollaMain()
 {
     // Do we have an authorized Dwolla Account? If no, then display a hero-like unit with two options. Create Account or Authorize Your Account
     if (!$this->company->company_dwollatoken) {
         return $this->dwollaAuthorizeOrCreate();
     }
     $myid = $this->company->id;
     $Dwolla = new DwollaRestClient($this->getSetting('dwolla_app_key'), $this->getSetting('dwolla_app_secret'), $this->getSetting('atikit_url') . "dwauth/{$myid}/");
     $Dwolla->setToken($this->company->company_dwollatoken);
     // Create a list of Funding Sources and an Add Button
     $fundingSources = $Dwolla->fundingSources();
     $rows = [];
     foreach ($fundingSources as $source) {
         $color = $source['Verified'] ? "green" : "red";
         $verified = $source['Verified'] ? "Yes" : "No";
         $row = [$source['Name'], $source['Type'], $verified, $color];
         $rows[] = $row;
     }
     $headers = ['Source Name', 'Type', 'Verified'];
     $table = table::init()->headers($headers)->rows($rows)->render();
     $add = button::init()->text("Add Bank Account")->isModalLauncher()->addStyle('btn-info')->icon('plus')->url('#addAccount')->render();
     $saveAccount = button::init()->text("Save Account")->addStyle('mpost')->icon('ok')->addStyle('btn-success')->postVar('addAccount')->formid('addAccountForm')->render();
     $this->exportModal(modal::init()->id('addAccount')->header("Add Bank Account to Dwolla")->content($this->addBankAccountForm())->footer($saveAccount)->render());
     $table .= base::alert('info', "Removing Accounts", "If you wish to remove your bank account from Dwolla, you must login to dwolla.com and remove.");
     return widget::init()->header('Funding Sources')->content($table)->span(8)->rightHeader($add)->isTable()->render();
 }
Пример #7
0
 private function getStripeCoupons()
 {
     $coupons = $this->stripe_getCoupons();
     $headers = ['ID', '%/Amt Off', 'Duration', 'Used/Max', 'Lifespan', 'Remove'];
     $rows = [];
     foreach ($coupons as $coupon) {
         $row = [];
         $row[] = $coupon['id'];
         if ($coupon['percent_off']) {
             $row[] = $coupon['percent_off'] . "%";
         } else {
             $row[] = "\$" . number_format($coupon['amount_off'] / 100, 2);
         }
         $row[] = $coupon['duration'];
         $row[] = $coupon['times_redeemed'] . "/" . $coupon['max_redemptions'];
         $row[] = $coupon['duration_in_months'] ? $coupon['duration_in_months'] . ' Months' : "Once";
         $row[] = "<a class='get' href='/admin/billing/stripe/removecoupon/{$coupon['id']}/'><i class='icon-remove'></i></a>";
         if ($coupon['times_redeemed'] < $coupon['max_redemptions']) {
             $row[] = 'green';
         } else {
             $row[] = 'red';
         }
         $rows[] = $row;
     }
     $addCoupon = button::init()->text("Create Coupon")->addStyle('btn-inverse')->icon('plus')->isModalLauncher()->url('#createCoupon')->render();
     $saveCoupon = button::init()->text("Save Coupon")->addStyle('btn-success')->formid('createCouponForm')->icon('ok')->addStyle('mpost')->postVar('createCoupon')->id('true')->message('Creating Coupon..')->render();
     $this->exportModal(modal::init()->id('createCoupon')->header("Create new Coupon")->content($this->createCouponForm())->footer($saveCoupon)->render());
     $table = table::init()->headers($headers)->rows($rows)->render();
     $widget = widget::init()->icon('minus')->span(4)->header('Stripe Coupons')->isTable()->rightHeader($addCoupon)->content($table)->render();
     return $widget;
 }