/** * Add JS File * * @param string $file * @param boolean $is_branded (default: TRUE) * @param string $type (default: text/javascript) * * @return void; */ function javascript($file, $is_branded = TRUE, $type = 'text/javascript') { $file = $is_branded == TRUE ? branded_include($file) : $file; $this->assets .= '<script type="' . $type . '" src="' . $file . '"></script>' . "\n"; return; }
<div id="theme_editor"> <div id="editor_head"> <div id="filename"> <input id="current_file" type="input" name="current_file" value="empty.thtml" class="tooltip" title="rename this file" /> <input id="old_filename" type="hidden" name="old_filename" value="empty.thtml" /> </div> <div id="options"> <input type="button" class="button" id="save_file" name="" value="Save File" /> <input type="button" class="button" id="delete_file" name="" value="Delete File" /> <input type="button" class="button tooltip" id="map_url" name="" value="Map URL to Template" title="map a site URL path (e.g., '/any_url_string') to this template file" /> </div> <div style="clear:both"></div> </div> <div id="editor_loading"> <img src="<?php echo branded_include('images/loading.gif'); ?> " alt="Loading" /> </div> <div id="not_writable"> <p>WARNING: This file or folder is not writable by <?php echo $this->config->item('app_name'); ?> . This means that <b>we cannot save any changes you make to the file in this editor.</b> Please login to your FTP server and attempt to change the file <i>and</i> folder permissions (with CHMOD) to 0755. If the error doesn't subside, attempt to change the permissions to 0777. Finally, if that does not work, contact your server administrator.</p> <p><a id="recheck_writable" href="javascript:void(0)">Click here to re-check your file permissions after modifying them.</a></p> </div> <div id="success_note"> Success! The file is now writable and we'll be able to save it.
} else { ?> <ul class="current_links"> <?php foreach ($links as $link) { ?> <li class="no_hover" id="link_<?php echo $link['id']; ?> " rel="<?php echo $link['id']; ?> "> <span class="handle"><img src="<?php echo branded_include('images/arrow.png'); ?> " alt="drag to move" title="drag to move" class="handle" /></span> <span class="text"><?php echo $link['text']; ?> </span> <span class="actions"> <input type="button" class="button edit_link" name="go" value="Edit" /> <input type="button" class="button remove_link" name="go" value="Remove" /> <?php if ($parent_id == 0) { ?> <?php if ($link['children'] == 0) { ?>
<?php echo $this->load->view(branded_view('cp/header'), array('head_files' => '<script type="text/javascript" src="' . branded_include('js/form.address.js') . '"></script>')); ?> <h1><?php echo $form_title; ?> </h1> <form class="form" id="form_customer" method="post" action="<?php echo site_url($form_action); ?> "> <fieldset> <legend>System Information</legend> <ul class="form"> <li> <label for="email">Email Address</label> <input type="text" autocomplete="off" class="text email mark_empty" rel="*****@*****.**" id="email" name="email" value="<?php echo $form['email']; ?> " /> </li> <li> <label for="internal_id">Internal Identifier</label> <input type="text" class="text" id="internal_id" name="internal_id" value="<?php echo $form['internal_id']; ?> " /> </li> <li> <div class="help">This identifier can be a username or account ID for your internal systems. It can be used via the API to
?> | Login</title> <link href="<?php echo branded_include('css/universal.css'); ?> " rel="stylesheet" type="text/css" media="screen" /> <link href="<?php echo branded_include('css/login.css'); ?> " rel="stylesheet" type="text/css" media="screen" /> <script type="text/javascript" src="<?php echo branded_include('js/jquery-1.3.2.js'); ?> "></script> <script type="text/javascript" src="<?php echo branded_include('js/universal.js'); ?> "></script> </head> <body> <div id="notices"><?php echo get_notices(); ?> </div> <div id="login_form"> <h1>Control Panel</h1> <h2><?php echo $this->config->item('server_name'); ?> </h2> <form method="post" action="<?php
<td class="label">Status</td> <td><?php if ($status == 'active') { ?> <img src="<?php echo branded_include('images/ok.png'); ?> " alt="active" /><?php } ?> <?php if ($status == 'inactive') { ?> <img src="<?php echo branded_include('images/failed.png'); ?> " alt="inactive" /><?php } ?> <?php echo $status; ?> <?php if ($status == "active") { ?> (<a href="<?php echo site_url('transactions/cancel_recurring/' . $id); ?> ">cancel recurring</a>)<?php }
<a class="move" href="#"><img src="<?php echo branded_include('images/arrow.png'); ?> " title="drag to re-order" /></a> <? if ($image['featured'] == FALSE) { ?><a class="feature" href="<?php echo site_url('admincp/gallery/image_feature/' . $gallery['id'] . '/' . $image['id']); ?> "><img src="<?php echo branded_include('images/star.png'); ?> " title="make featured image" /></a><? } ?> <a class="delete" href="<?php echo site_url('admincp/gallery/image_delete/' . $gallery['id'] . '/' . $image['id']); ?> "><img src="<?php echo branded_include('images/bin.png'); ?> " title="delete" /></a> </li> <? } ?> </ul> <div style="clear:both"></div> </div> <? } else { ?> <p>No images, yet.</p> <? } ?> </div> <div style="clear:both"></div> <?php
<?php /* Default Values */ if (!isset($form)) { $form = array('trigger' => '', 'to_address' => 'customer', 'bcc_address' => '', 'email_subject' => '', 'email_body' => '', 'from_name' => '', 'from_email' => '', 'plan' => '', 'is_html' => '0'); } echo $this->load->view(branded_view('cp/header'), array('head_files' => '<link type="text/css" rel="stylesheet" href="' . branded_include('css/tinyeditor.css') . '" /> <script type="text/javascript" src="' . branded_include('js/tiny.editor.packed.js') . '"></script> <script type="text/javascript" src="' . branded_include('js/form.email.js') . '"></script>')); ?> <h1><?php echo $form_title; ?> </h1> <form class="form" id="form_email" method="post" action="<?php echo site_url($form_action); ?> "> <fieldset> <legend>System Information</legend> <ul class="form"> <li> <label for="trigger">Trigger</label> <select id="trigger" class="required" name="trigger"> <option <?php if ($form['trigger'] == '') { ?> selected="selected" <?php } ?> value=""></option>
<?php echo $this->load->view(branded_view('cp/header'), array('head_files' => '<script type="text/javascript" src="' . branded_include('js/form.address.js') . '"></script> <script type="text/javascript" src="' . branded_include('js/form.transaction.js') . '"></script>')); ?> <h1>New Transaction</h1> <form class="form" id="form_transaction" method="post" action="<?php echo site_url('transactions/post'); ?> "> <?php if (empty($gateways)) { ?> <p class="warning no_gateway"><span>You do not have any active gateways available to process this transaction. The submit button has been disabled. To begin processing transactions, you should <a href="<?php echo site_url('settings/new_gateway'); ?> ">setup a new payment gateway</a>.</span></p> <?php } ?> <div id="transaction_amount"> <fieldset> <legend>Payment Information</legend> <ul class="form"> <li> <label for="amount" class="full">Amount</label> </li> <li> <input type="text" class="text full required number" id="amount" name="amount" /> </li>
<tr> <td class="label">Status</td> <?php if ($refunded == "1" or $status == "failed") { $status_image = "failed"; } else { $status_image = "ok"; } if ($refunded == "1") { $status = "refunded on " . $refund_date; } elseif ($type == 'recurring_repeat' and $status == 'failed') { $status = 'recurring repeat failed'; } ?> <td><img src="<?php echo branded_include('images/' . $status_image . '.png'); ?> " alt="" /> <?php echo $status; ?> </td> </tr> <tr> <td class="label">Credit Card</td> <td><?php if (!empty($card_last_four)) { ?> **** <?php echo $card_last_four; } ?>
"></script> <script type="text/javascript" src="<?php echo branded_include('js/form.js'); ?> "></script> <?php /* previously, this was an ugly $head_files print. now we use a class. */ ?> <?php echo $this->head_assets->display(); ?> <?php /* ckeditor must be loaded here because it's acting on classes we defined in universal.js above */ ?> <?php if (defined("INCLUDE_CKEDITOR")) { ?> <script type="text/javascript" src="<?php echo branded_include('js/ckeditor/ckeditor.js'); ?> "></script> <script type="text/javascript" src="<?php echo branded_include('js/ckeditor/adapters/jquery.js'); ?> "></script> <?php } ?> </head>
/** * Admin Link * * Generates an icon link to the frontend of your site from the control panel. * * @param string $link * * @return string HTML for the link */ function admin_link($link) { return '<a href="' . $link . '" target="_blank"><img src="' . branded_include('images/link.png') . '" alt="Open in Browser" title="Open in Browser" /></a>'; }
echo $row['id']; ?> " value="1" class="action_items" /></td> <td><?php echo $row['id']; ?> </td> <td><?php echo admin_link($row['url']); ?> </td> <td><? if ($row['is_download'] == TRUE) { ?><img src="<?php echo branded_include('images/download.png'); ?> " alt="Downloadable Product" /><? } ?><? if ($row['is_download'] == TRUE and $row['requires_shipping'] == TRUE) { ?> <? } ?><? if ($row['requires_shipping'] == TRUE) { ?><img src="<?php echo branded_include('images/shippable.png'); ?> " alt="Shippable Product" /><? } ?></td> <td><a href="<?php echo $row['admin_link']; ?> "><?php echo $row['name']; ?> </a></td> <td><?php echo setting('currency_symbol'); echo $row['price']; ?> </td> <td><?php
?> " rel="stylesheet" type="text/css" media="screen" /> <script type="text/javascript" src="<?php echo branded_include('js/jquery-1.4.2.js'); ?> "></script> <script type="text/javascript" src="<?php echo branded_include('js/tiptip.min.js'); ?> "></script> <script type="text/javascript" src="<?php echo branded_include('js/universal.js'); ?> "></script> <script type="text/javascript" src="<?php echo branded_include('js/form.js'); ?> "></script> <script type="text/javascript"> $(document).ready(function () { $('#username').focus(); }); </script> </head> <body> <div id="notices"><?php echo get_notices(); ?> </div> <div id="login_form"> <h1><span class="app_name"><?php