/** * Returns credentials form * * @since 1.1 * @param array $defaults * @return array */ protected function getCredentialsForm($defaults = array()) { return array('legend' => __('Enter your AWS Access Key,<br/>Secret Key and Bucket name', BUP_LANG_CODE), 'fields' => array(array('label' => __('Access Key', BUP_LANG_CODE), 'field' => htmlBup::text('access', array('value' => isset($defaults['access']) ? $defaults['access'] : '', 'attrs' => 'class="inputField100per"'))), array('label' => __('Secret Key', BUP_LANG_CODE), 'field' => htmlBup::text('secret', array('value' => isset($defaults['access']) ? $defaults['access'] : '', 'attrs' => 'class="inputField100per"'))), array('label' => __('Bucket', BUP_LANG_CODE), 'field' => htmlBup::text('bucket', array('value' => isset($defaults['bucket']) ? $defaults['bucket'] : '', 'attrs' => 'class="inputField100per"')))), 'extra' => array(htmlBup::button(array('value' => __(' Save ', BUP_LANG_CODE), 'attrs' => 'class="button button-primary button-large" id="bupAmazonCredentials"')))); }
echo htmlBup::hidden('action', array('value' => 'createAction')); ?> <?php echo htmlBup::submit('backupnow', array('value' => langBup::_('Backup Now'), 'attrs' => 'class="button button-primary button-large"')); ?> </td> </tr> </table> </form> <form class="cspNiceStyle" > <!--id="bupAdminMainForm"--> <table width="100%"> <tr class="cspAdminOptionRow cspTblRow"> <td width="100">Restore backup</td> <td> <?php echo htmlBup::button(array('attrs' => 'class="button button-primary button-large" id="redirStorage"', 'value' => langBup::_('Restore'))); ?> </td> </tr> <tr class="cspAdminOptionRow cspTblRow"> <td></td> <td></td> </tr> </table> </form> <div id="resBox"></div> <div align="left"> <a id="bup_a_maininfo" href="javascript: void (0)">Options info</a> ↓ <div id="BUP_MESS_INFO"></div>
<div id="bupAmazonAlerts"></div> <div id="bupAmazonWrapper"> <section id="bupAmazonLogout"> <?php echo htmlBup::button(array('value' => __('Logout', BUP_LANG_CODE), 'attrs' => 'class="button button-primary button-large" id="bupAmazonLogoutButton"')); ?> </section> </div>
<img id="cspOptLogoImgPrev" src="<?php echo $this->optModel->isEmpty('logo_image') ? '' : frameBup::_()->getModule('options')->getLogoImgFullPath(); ?> " style="max-width: 200px;" /> </div> <div class="cspRightCol"> <div class="cspTip cspTipArrowLeft nomargin"> <?php langBup::_e('Choose your logo, you can use png, jpg or gif image file.'); ?> <span class="cspTipCorner"></span> </div> <br /> <div class="cspTip cspTipArrowDown nomargin"> <?php langBup::_e('You can use default logo, your own or disable it. To disable logo on Coming Soon page click "Remove image" button bellow.'); ?> <span class="cspTipCorner"></span> </div> <br /> <?php echo htmlBup::button(array('value' => langBup::_('Remove image'), 'attrs' => 'id="cspLogoRemove" class="button button-large" style="width:100%;"')); ?> <?php echo htmlBup::button(array('value' => langBup::_('Set default'), 'attrs' => 'id="cspLogoSetDefault" class="button button-large" style="width:100%;"')); ?> <div id="cspAdminOptLogoDefaultMsg"></div> </div> <div class="clearfix"></div>
?> :</h4> <?php echo htmlBup::textarea('opt_values[msg_text]', array('value' => $this->optModel->get('msg_text'))); ?> <div class="cspLeftCol"> <?php langBup::_e('Select color'); ?> : <?php echo htmlBup::colorpicker('opt_values[msg_text_color]', array('value' => $this->optModel->get('msg_text_color'))); ?> </div> <div class="cspRightCol"> <?php langBup::_e('Select font'); ?> : <?php echo htmlBup::fontsList('opt_values[msg_text_font]', array('value' => $this->optModel->get('msg_text_font'))); ?> </div> <div class="clearfix"></div> <div class="clearfix"> <?php echo htmlBup::button(array('value' => langBup::_('Set default'), 'attrs' => 'id="cspMsgTextSetDefault"')); ?> <div id="cspAdminOptMsgTextDefaultMsg"></div> </div> <div class="clearfix"></div>