initial commit

This commit is contained in:
2026-06-25 13:03:45 +06:00
commit 4589f4a8d0
3229 changed files with 941958 additions and 0 deletions

View File

@@ -0,0 +1,97 @@
<div class="bodyContent shadow">
<h1>ABOUT US</h1>
<p>We are young entrepreneurs who have more than ten years of work experience on software field. This product we have built as our start-up and will announce few more product soon. Although, we are living in three different countries,it was very successfull teamwork as we managed to launch the product on time. </p>
<div class="pageDivider"></div>
<!-- About us section-->
<div class="row">
<div class="col-md-6">
<div class="abtContentBox">
<p><b>Name1</b></p>
<p>Analyst,Web and facebook application developer</p>
<p>Kuala Lumpur, Malaysia</p>
<p><strong>Contact Information:</strong>
</p>
<p>
<label>
<a href="mailto:Name1@expensecount.com">
<img src="<?php echo $this->webroot;?>images/about-email-icon.jpg" alt="" />
</a>
E-mail</label>: <a href="mailto:Name1@expensecount.com">Name1@expensecount.com</a>
</p>
<p>
<label>
<img src="<?php echo $this->webroot;?>images/about-fb-icon.jpg" alt="" />
Facebook</label>: <a target="blank" href="https://www.facebook.com/expensecount"> ExpenseCount page</a>
</p>
<!-- <p>
<label>
<img src="<?php echo $this->webroot;?>images/about-phone-icon.jpg" alt="" /> Phone</label>: +0088 01712 898714</p> -->
</div>
</div>
<div class="col-md-6">
<div class="abtContentBox">
<p><b>Name2</b></p>
<p>Analyst,Android and iPhone application developer</p>
<p>Somerset,New Jersy,USA</p>
<p><strong>Contact Information:</strong>
</p>
<p>
<label>
<a href="mailto:Name2@expensecount.com"> <img src="<?php echo $this->webroot;?>images/about-email-icon.jpg" alt="" /> </a> E-mail</label>: <a href="mailto:Name2@expensecount.com">Name2@expensecount.com</a></p>
<p>
<label>
<img src="<?php echo $this->webroot;?>images/about-fb-icon.jpg" alt="" />
Facebook</label>: <a target="blank" href="https://www.facebook.com/expensecount"> ExpenseCount page</a>
</p>
<!-- <p>
<label>
<img src="<?php echo $this->webroot;?>images/about-phone-icon.jpg" alt="" /> Phone</label>: +0088 01712 898714</p> -->
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="abtContentBox">
<p><b>Name3</b></p>
<p>Graphics and Web designer</p>
<p>Dhaka,Bangladesh</p>
<p><strong>Contact Information:</strong>
</p>
<p>
<label>
<a href="mailto:Name3@expensecount.com">
<img src="<?php echo $this->webroot;?>images/about-email-icon.jpg" alt="" />
</a> E-mail</label>: <a href="mailto:Name3@expensecount.com"> Name3@expensecount.com</a>
</p>
<p>
<label>
<img src="<?php echo $this->webroot;?>images/about-fb-icon.jpg" alt="" />
Facebook</label>: <a target="blank" href="https://www.facebook.com/expensecount"> ExpenseCount page</a>
</p>
<!--
<p><label><img src="<?php echo $this->webroot;?>images/about-phone-icon.jpg" alt="" /> Phone</label>: +0088 01712 898714</p>
-->
</div>
</div>
</div>
<p> For quick response,please contact our public page <a target="blank" href="https://facebook.com/ExpenseCount">Facebook</a> and <a target="blank" href="https://twitter.com/expensecount">Twitter</a> or leave a message <a href="<?php echo $this->Html->url(array('controller'=>'pages','action'=>'feedback'));?>">here</a></p>
</div>

View File

@@ -0,0 +1,13 @@
<div class="bodyContent shadow">
<h1><?php echo __("LBL_ABOUT_US"); ?></h1>
<p><?php echo __("LBL_YOUNG_ENTREPRENEURS_HAVING_10_PLUS_EXPERIENCE"); ?> </p>
<div class="pageDivider"></div>
<!-- About us section-->
<p> <?php echo __("LBL_FOR_QUICK_RESPONSE_PLEASE_CONTACT"); ?></p>
</div>

View File

@@ -0,0 +1,32 @@
<div class="bodyContent shadow">
<h1>EXPENSECOUNT FOR FACEBOOK</h1>
<p>ExpenseCount Facebook application is under construction. Hopefully, it will be released soon. </p>
<div class="pageDivider"></div>
<div class="row">
<div class="col-md-5 text-center">
<img src="<?php echo $this->webroot;?>images/facebook_image.jpg" width="270" height="225" alt=""/>
</div>
<div class="col-md-7">
<h3>ExpenseCount for Facebook</h3>
The Facebook application will allow you to manage all of your expense from one place as well as to invite your Facebook friends to those expenses. <br/><br/>
<a style="cursor:pointer" onClick="showMessage()"><img src="<?php echo $this->webroot;?>images/app-fb.png" alt=""/></a>
</div>
</div>
</div>
<script>
function showMessage(){
alert("Coming soon!");
}
</script>

248
app/View/Pages/faq.ctp Normal file
View File

@@ -0,0 +1,248 @@
<style>
h2.faq {
font-size: 1.03rem;
}
</style>
<div class="bodyContent shadow">
<div id="contentbox">
<h1><?php echo __("LBL_FREQUENTLY_ASKED_QUS"); ?></h1>
<div class="row">
<div class="col-md-6">
<div id="box_faq_tt">
<h2 class="faq_categories">
<img width="65" height="65" title="Web" alt="Web" src="<?php echo CDN_URL;?>images/computer_faq.png">
</h2>
<ul class="faq">
<li>
<a href="#faq01"><?php echo __("LBL_WHAT_EXPENSECOUNT_DO"); ?></a>
</li>
<li>
<a href="#faq02"><?php echo __("LBL_HOW_SAVE_EXPENSE_URL"); ?></a>
</li>
<li>
<a href="#faq03"><?php echo __("LBL_HOW_OTHER_PARTICIPANT_KNOW"); ?></a>
</li>
<li>
<a href="#faq04"><?php echo __("LBL_IF_LINK_NOT_WORK"); ?></a>
</li>
<!-- <li>
<a href="#faq05"><?php echo __("LBL_CAN_DELETE_EXPENSECOUNT"); ?></a>
</li> -->
<li>
<a href="#faq06"><?php echo __("LBL_OTHER_PEOPLE_ACCESS_MY_EXPENSECOUNT"); ?></a>
</li>
<li>
<a href="#faq07"><?php echo __("LBL_WHAT_IS_GROUP_EXPENSE_MESS_AND_FAMILY"); ?></a>
</li>
<!-- <li>
<a href="#faq08"><?php echo __("LBL_WHAT_REIMBRUSEMENT"); ?></a>
</li>
<li>
<a href="#faq09"><?php echo __("LBL_HOW_EXPENSECOUNT_FROM_FACEBOOK_MOBILE"); ?></a>
</li> -->
<li>
<a href="#faq10"><?php echo __("LBL_HOW_CHECK_EXPENSE_MODIFICATION_HISTORY"); ?></a>
</li>
<li>
<a href="#faq11"><?php echo __("LBL_HOW_MANY_PARTICIPANTS_CAN_USE_EXPENSECOUNT"); ?></a>
</li>
</ul>
</div>
</div>
<!-- <div class="col-md-6">
<div id="box_faq_fb">
<h2 class="faq_categories">
<img width="65" height="65" title="Facebook" alt="Facebook" src="<?php echo CDN_URL;?>images/facebook_faq.png">
</h2>
<ul class="faq">
<li>
<a href="#faq51"><?php echo __("LBL_WHY_USE_EXPENSECOUNT_ON_FACEBOOK"); ?></a>
</li>
<li>
<a href="#faq52"><?php echo __("LBL_WHAT_IMPACT_DELETE_EXPENSECOUNT_FROM_FACEBOOK"); ?></a>
</li>
<li>
<a href="#faq53"><?php echo __("LBL_IS_EXPENSECOUNT_DATA_AVAILABLE_FOR_FB_FRIEND"); ?></a>
</li>
<li>
<a href="#faq54"><?php echo __("LBL_ADD_PARTICIPANTS_NOT_FACEBOOK_FRIEND"); ?></a>
</li>
<li>
<a href="#faq55"><?php echo __("LBL_HOW_PARTICIPANTS_NOTIFIED"); ?></a>
</li>
</ul>
</div> -->
<div id="box_faq_ip">
<h2 class="faq_categories">
<img width="65" height="65" title="iPhone and Android" alt="iPhone and Android" src="<?php echo CDN_URL;?>images/mob_faq.png">
</h2>
<ul class="faq">
<!-- <li>
<a href="#faq101"><?php echo __("LBL_WHY_USE_EXPENSECOUNT_ON_MOBILE_DEVICE"); ?></a>
</li> -->
<li>
<a href="#faq102"><?php echo __("LBL_WHAT_IMPACT_DELETE_EXPENSECOUNT_FROM_MOBILE"); ?></a>
</li>
<li>
<a href="#faq103"><?php echo __("LBL_CAN_USE_EXPENSECOUNT_ON_MOBILE_WITHOUT_INTERNET_CONNECTION"); ?></a>
</li>
</ul>
</div>
</div>
</div>
<h2 class="faq" id="faq01"><?php echo __('LBL_WHAT_EXPENSECOUNT_DO'); ?></h2>
<p class="line">
<?php echo __('LBL_EXPENSECOUNT_MANAGE_THREE_TYPE_EXPENSE'); ?>
</p>
<h2 class="faq" id="faq02"><?php echo __("LBL_HOW_SAVE_EXPENSE_URL"); ?></h2>
<p class="line"><?php echo __("LBL_CHECK_TRACK_ME_OPTION"); ?>
<br/>
</p>
<h2 class="faq" id="faq03"><?php echo __("LBL_HOW_OTHER_PARTICIPANT_KNOW"); ?></h2>
<p class="line"><?php echo __("LBL_EXPENSE_CREATION_SEND_EMAIL"); ?>
<br>
</p>
<h2 class="faq" id="faq04"><?php echo __("LBL_IF_LINK_NOT_WORK"); ?></h2>
<p class="line">
<?php echo __("LBL_MAKE_SURE_HAVING_CORRECT_URL_OR_EMAIL"); ?>
<br>
</p>
<!-- <h2 class="faq" id="faq05"><?php echo __("LBL_CAN_DELETE_EXPENSECOUNT"); ?></h2>
<p class="line"><?php echo __("LBL_NOT_POSSIBLE_DELETE_EXPENSECOUNT_MANUALLY"); ?>
<br>
</p> -->
<h2 class="faq" id="faq06"><?php echo __("LBL_OTHER_PEOPLE_ACCESS_MY_EXPENSECOUNT"); ?></h2>
<p class="line"><?php echo __("LBL_OTHER_PEOPLE_ACCESS_IF_KNOW_URL"); ?>
<br>
</p>
<h2 class="faq" id="faq07"><?php echo __("LBL_WHAT_IS_GROUP_EXPENSE_MESS_AND_FAMILY"); ?></h2>
<p class="line">
<?php echo __("LBL_GROUP_EXPENSE_DURING_ANY_KIND_OF_GROUP_ACTIVITY"); ?>
<br/><br/>
All the above problems can be resolved by ExpenseCount.
<br>
</p>
<!-- <h2 class="faq" id="faq08"><?php echo __("LBL_WHAT_REIMBRUSEMENT"); ?></h2>
<p class="line"> <?php echo __("LBL_REIMBRURSEMENT_EXPLANATION"); ?>
<br>
</p>
<h2 class="faq" id="faq09"><?php echo __("LBL_HOW_EXPENSECOUNT_FROM_FACEBOOK_MOBILE"); ?></h2>
<p class="line"><?php echo __("LBL_POSSIBLE_TO_USE_EXPENSECOUNT_FROM_FACEBOOK"); ?>
<br>
</p> -->
<h2 class="faq" id="faq10"><?php echo __("LBL_HOW_CHECK_EXPENSE_MODIFICATION_HISTORY"); ?></h2>
<p class="line"><?php echo __("LBL_HOW_CHECK_EXPENSE_MODIFICATION_HISTORY_ANS"); ?>
<br>
</p>
<h2 class="faq" id="faq11"><?php echo __("LBL_HOW_MANY_PARTICIPANTS_CAN_USE_EXPENSECOUNT"); ?></h2>
<p class="line"><?php echo __("LBL_HOW_MANY_PARTICIPANTS_CAN_USE_EXPENSECOUNT_ANS"); ?>
<br>
</p>
<!-- <h2 class="faq" id="faq51"><?php echo __("LBL_WHY_USE_EXPENSECOUNT_ON_FACEBOOK"); ?></h2>
<p class="line"><?php echo __("LBL_WHY_USE_EXPENSECOUNT_ON_FACEBOOK_ANS"); ?>
<br>
</p>
<h2 class="faq" id="faq52"><?php echo __("LBL_WHAT_IMPACT_DELETE_EXPENSECOUNT_FROM_FACEBOOK"); ?></h2>
<p class="line"> <?php echo __("LBL_WHAT_IMPACT_DELETE_EXPENSECOUNT_FROM_FACEBOOK_ANS"); ?>
</p>
<h2 class="faq" id="faq53"><?php echo __("LBL_IS_EXPENSECOUNT_DATA_AVAILABLE_FOR_FB_FRIEND"); ?></h2>
<p class="line"><?php echo __("LBL_IS_EXPENSECOUNT_DATA_AVAILABLE_FOR_FB_FRIEND_ANS"); ?>
<br>
</p>
<h2 class="faq" id="faq54"><?php echo __("LBL_ADD_PARTICIPANTS_NOT_FACEBOOK_FRIEND"); ?></h2>
<p class="line"><?php echo __("LBL_ADD_PARTICIPANTS_NOT_FACEBOOK_FRIEND_ANS"); ?>
<br>
</p>
<h2 class="faq" id="faq55"><?php echo __("LBL_HOW_PARTICIPANTS_NOTIFIED"); ?></h2>
<p class="line">
<?php echo __("LBL_HOW_PARTICIPANTS_NOTIFIED_ANS"); ?>
</p>
<h2 class="faq" id="faq101"> <?php echo __("LBL_WHY_USE_EXPENSECOUNT_ON_MOBILE_DEVICE"); ?></h2>
<p class="line">
<?php echo __("LBL_WHY_USE_EXPENSECOUNT_ON_MOBILE_DEVICE_ANS"); ?>
<br>
</p> -->
<h2 class="faq" id="faq102"><?php echo __("LBL_WHAT_IMPACT_DELETE_EXPENSECOUNT_FROM_MOBILE"); ?></h2>
<p class="line">
<?php echo __("LBL_WHAT_IMPACT_DELETE_EXPENSECOUNT_FROM_MOBILE_ANS"); ?>
<br>
</p>
<h2 class="faq" id="faq103"><?php echo __("LBL_CAN_USE_EXPENSECOUNT_ON_MOBILE_WITHOUT_INTERNET_CONNECTION"); ?></h2>
<p class="line">
<?php echo __("LBL_POSSIBLE_ACCESS_WITHOUT_INTERNET_CONNECTION"); ?>
<br>
</p>
</div>
</div>
<script src="<?php echo CDN_URL; ?>css/bootstrap.min.css"></script>
<script>
$(function() {
$('a[href*=#]:not([href=#])').click(function() {
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
if (target.length) {
$('html,body').animate({
scrollTop: target.offset().top
}, 1000);
return false;
}
}
});
});
</script>

172
app/View/Pages/feedback.ctp Normal file
View File

@@ -0,0 +1,172 @@
<style>
input[type="submit"] {
background: #0757a4;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
padding: 7px 15px;
color: #fff;
font-weight: 700;
font-size: 14px;
border: none;
margin-top: 10px;
cursor: pointer;
}
input[type="submit"]:hover {
background: #104374;
}
.isa_success {
color: #4F8A10;
background-color: #DFF2BF;
}
.isa_error {
color: #D8000C;
background-color: #FFBABA;
}
.comments label {
display: block;
padding-bottom: 5px;
}
.comments input[type="text"],
.comments textarea,
.loginBox input[type="text"],
.loginBox textarea,
.loginBox input[type="password"] {
width: 320px;
padding: 5px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
border: 1px solid #b6b6b6;
margin-bottom: 8px;
}
input#btnFeedbackSubmit {
display: inline-block;
}
img#loadingGif {
display: inline-block;
}
pre.cake-error {
display: none;
}
</style>
<div class="bodyContent shadow">
<h1><?php echo __("LBL_FEEDBACK"); ?></h1>
<p><?php echo __("LBL_POSITIVE_EXPERIENCE_REGARDING_EXPENSE_MANAGEMENT"); ?></p>
<div class="pageDivider"></div>
<h4><?php echo __("LBL_ANY_CRITICISM_SUGGESTION_IDEA_GENERAL_FEEDBACK"); ?></h4>
<p><?php echo __("LBL_WANT_TO-WRITE_SOMETHING_USE_THE_FROM_BELOW"); ?></p>
<?php if (isset($captcha_error)) { ?>
<p class="isa_error"><?php echo $captcha_error; ?></p>
<?php } ?>
<div class="pageDivider"></div>
<?php echo $this->Form->create(null, array('class' => 'comments', 'url' => array('controller' => 'pages', 'action' => 'feedback'))); ?>
<?php if (isset($error)) { ?>
<p class="isa_error"><?php echo $error; ?></p>
<?php } ?>
<?php if (isset($success)) { ?>
<p class="isa_success"><?php echo $success; ?></p>
<?php } ?>
<?php echo $this->Session->read('system.message'); ?>
<label for="feedbackemail"><?php echo __("LBL_YOUR_EMAIL"); ?></label>
<?php echo $this->Form->input('feedbackemail', array('label' => false)); ?>
<?php if (isset($email_error)) { ?>
<p class="isa_error"><?php echo $email_error; ?></p>
<?php } ?>
<label><?php echo __("LBL_COMMENT"); ?></label>
<?php echo $this->Form->textarea('comment', array('rows' => '5', 'cols' => '45')); ?><button type="button" class="btn btn-primary tooltipBtn" data-toggle="tooltip" data-placement="right" title="<?php echo __('LBL_WRITE_YOUR_FEEDBACK'); ?>">?</button>
<?php echo $this->Form->input('captcha', array('label' => false, 'div' => false, 'type' => 'hidden', 'value' => $captcha)); ?>
<?php if (isset($comment_error)) { ?>
<p class="isa_error"><?php echo $comment_error; ?></p>
<?php } ?>
<label><strong>Enter Captcha*:</strong></label>
<input type="text" name="captcha" autocomplete="off" required />
<p><img src="<?php echo HTTP_SITE_URL . '/captcha.php?rand=' . rand(); ?>" id='captcha_image'>
<!-- <p><img src="--><?php //echo HTTP_SITE_URL.'/users/captcha/'.rand();
?>
<!--" id='captcha_image'>-->
Can't read the image? <a href='javascript: refreshCaptcha();'>click here</a> to refresh
</p>
<p>
<?php if (isset($success)) { ?>
<?php } else { ?>
<?php echo $this->Form->end(array('label' => 'Submit', 'id' => 'btnFeedbackSubmit')); ?>
<?php } ?>
</p>
</div>
<!--<script src="<?php echo CDN_URL; ?>js/jquery-1.10.2.js"></script>-->
<script type="text/javascript">
$(document).ready(function() {
$(".submit").append('<img id="loadingGif" style="display: none;" src="<?php echo CDN_URL; ?>images/loading.gif" alt="">');
$("form").submit(function() {
$("#loadingGif").css("display", "inline-block");
});
$('#reload').click(function() {
var captcha = $("#captcha_image");
captcha.attr('src', captcha.attr('src') + '?' + Math.random());
return false;
});
});
</script>
<!--<script src='https://www.google.com/recaptcha/api.js?onload=onloadCallback'></script>-->
<script>
function refreshCaptcha() {
var img = document.images['captcha_image'];
img.src = img.src.substring(
0, img.src.lastIndexOf("?")
) + "?rand=" + Math.random() * 1000;
// img.src = img.src.substring(
// 0,img.src.lastIndexOf("/")
// )+"/"+Math.random()*1000;
}
/*var onloadCallback = function() {
grecaptcha.execute();
};
function setResponse(response) {
document.getElementById('captcha-response').value = response;
}*/
</script>

229
app/View/Pages/home.ctp Normal file
View File

@@ -0,0 +1,229 @@
<?php
/**
* @link http://cakephp.org CakePHP(tm) Project
* @package app.View.Pages
* @since CakePHP(tm) v 0.10.0.1076
*/
if (!Configure::read('debug')):
throw new NotFoundException();
endif;
App::uses('Debugger', 'Utility');
?>
<h2><?php echo __d('cake_dev', 'Release Notes for CakePHP %s.', Configure::version()); ?></h2>
<p>
<a href="http://cakephp.org/changelogs/<?php echo Configure::version(); ?>"><?php echo __d('cake_dev', 'Read the changelog'); ?> </a>
</p>
<?php
if (Configure::read('debug') > 0):
Debugger::checkSecurityKeys();
endif;
?>
<?php
if (file_exists(WWW_ROOT . 'css' . DS . 'cake.generic.css')):
?>
<p id="url-rewriting-warning" style="background-color:#e32; color:#fff;">
<?php echo __d('cake_dev', 'URL rewriting is not properly configured on your server.'); ?>
1) <a target="_blank" href="http://book.cakephp.org/2.0/en/installation/url-rewriting.html" style="color:#fff;">Help me configure it</a>
2) <a target="_blank" href="http://book.cakephp.org/2.0/en/development/configuration.html#cakephp-core-configuration" style="color:#fff;">I don't / can't use URL rewriting</a>
</p>
<?php endif; ?>
<p>
<?php
if (version_compare(PHP_VERSION, '5.2.8', '>=')):
echo '<span class="notice success">';
echo __d('cake_dev', 'Your version of PHP is 5.2.8 or higher.');
echo '</span>';
else:
echo '<span class="notice">';
echo __d('cake_dev', 'Your version of PHP is too low. You need PHP 5.2.8 or higher to use CakePHP.');
echo '</span>';
endif;
?>
</p>
<p>
<?php
if (is_writable(TMP)):
echo '<span class="notice success">';
echo __d('cake_dev', 'Your tmp directory is writable.');
echo '</span>';
else:
echo '<span class="notice">';
echo __d('cake_dev', 'Your tmp directory is NOT writable.');
echo '</span>';
endif;
?>
</p>
<p>
<?php
$settings = Cache::settings();
if (!empty($settings)):
echo '<span class="notice success">';
echo __d('cake_dev', 'The %s is being used for core caching. To change the config edit %s', '<em>'. $settings['engine'] . 'Engine</em>', 'APP/Config/core.php');
echo '</span>';
else:
echo '<span class="notice">';
echo __d('cake_dev', 'Your cache is NOT working. Please check the settings in %s', 'APP/Config/core.php');
echo '</span>';
endif;
?>
</p>
<p>
<?php
$filePresent = null;
if (file_exists(APP . 'Config' . DS . 'database.php')):
echo '<span class="notice success">';
echo __d('cake_dev', 'Your database configuration file is present.');
$filePresent = true;
echo '</span>';
else:
echo '<span class="notice">';
echo __d('cake_dev', 'Your database configuration file is NOT present.');
echo '<br/>';
echo __d('cake_dev', 'Rename %s to %s', 'APP/Config/database.php.default', 'APP/Config/database.php');
echo '</span>';
endif;
?>
</p>
<?php
if (isset($filePresent)):
App::uses('ConnectionManager', 'Model');
try {
$connected = ConnectionManager::getDataSource('default');
} catch (Exception $connectionError) {
$connected = false;
$errorMsg = $connectionError->getMessage();
if (method_exists($connectionError, 'getAttributes')):
$attributes = $connectionError->getAttributes();
if (isset($errorMsg['message'])):
$errorMsg .= '<br />' . $attributes['message'];
endif;
endif;
}
?>
<p>
<?php
if ($connected && $connected->isConnected()):
echo '<span class="notice success">';
echo __d('cake_dev', 'CakePHP is able to connect to the database.');
echo '</span>';
else:
echo '<span class="notice">';
echo __d('cake_dev', 'CakePHP is NOT able to connect to the database.');
echo '<br /><br />';
echo $errorMsg;
echo '</span>';
endif;
?>
</p>
<?php endif; ?>
<?php
App::uses('Validation', 'Utility');
if (!Validation::alphaNumeric('cakephp')):
echo '<p><span class="notice">';
echo __d('cake_dev', 'PCRE has not been compiled with Unicode support.');
echo '<br/>';
echo __d('cake_dev', 'Recompile PCRE with Unicode support by adding <code>--enable-unicode-properties</code> when configuring');
echo '</span></p>';
endif;
?>
<p>
<?php
if (CakePlugin::loaded('DebugKit')):
echo '<span class="notice success">';
echo __d('cake_dev', 'DebugKit plugin is present');
echo '</span>';
else:
echo '<span class="notice">';
echo __d('cake_dev', 'DebugKit is not installed. It will help you inspect and debug different aspects of your application.');
echo '<br/>';
echo __d('cake_dev', 'You can install it from %s', $this->Html->link('GitHub', 'https://github.com/cakephp/debug_kit'));
echo '</span>';
endif;
?>
</p>
<h3><?php echo __d('cake_dev', 'Editing this Page'); ?></h3>
<p>
<?php
echo __d('cake_dev', 'To change the content of this page, edit: %s.<br />
To change its layout, edit: %s.<br />
You can also add some CSS styles for your pages at: %s.',
'APP/View/Pages/home.ctp', 'APP/View/Layouts/default.ctp', 'APP/webroot/css');
?>
</p>
<h3><?php echo __d('cake_dev', 'Getting Started'); ?></h3>
<p>
<?php
echo $this->Html->link(
sprintf('<strong>%s</strong> %s', __d('cake_dev', 'New'), __d('cake_dev', 'CakePHP 2.0 Docs')),
'http://book.cakephp.org/2.0/en/',
array('target' => '_blank', 'escape' => false)
);
?>
</p>
<p>
<?php
echo $this->Html->link(
__d('cake_dev', 'The 15 min Blog Tutorial'),
'http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/blog.html',
array('target' => '_blank', 'escape' => false)
);
?>
</p>
<h3><?php echo __d('cake_dev', 'Official Plugins'); ?></h3>
<p>
<ul>
<li>
<?php echo $this->Html->link('DebugKit', 'https://github.com/cakephp/debug_kit') ?>:
<?php echo __d('cake_dev', 'provides a debugging toolbar and enhanced debugging tools for CakePHP applications.'); ?>
</li>
<li>
<?php echo $this->Html->link('Localized', 'https://github.com/cakephp/localized') ?>:
<?php echo __d('cake_dev', 'contains various localized validation classes and translations for specific countries'); ?>
</li>
</ul>
</p>
<h3><?php echo __d('cake_dev', 'More about CakePHP'); ?></h3>
<p>
<?php echo __d('cake_dev', 'CakePHP is a rapid development framework for PHP which uses commonly known design patterns like Active Record, Association Data Mapping, Front Controller and MVC.'); ?>
</p>
<p>
<?php echo __d('cake_dev', 'Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility.'); ?>
</p>
<ul>
<li><a href="http://cakephp.org">CakePHP</a>
<ul><li><?php echo __d('cake_dev', 'The Rapid Development Framework'); ?></li></ul></li>
<li><a href="http://book.cakephp.org"><?php echo __d('cake_dev', 'CakePHP Documentation'); ?> </a>
<ul><li><?php echo __d('cake_dev', 'Your Rapid Development Cookbook'); ?></li></ul></li>
<li><a href="http://api.cakephp.org"><?php echo __d('cake_dev', 'CakePHP API'); ?> </a>
<ul><li><?php echo __d('cake_dev', 'Quick API Reference'); ?></li></ul></li>
<li><a href="http://bakery.cakephp.org"><?php echo __d('cake_dev', 'The Bakery'); ?> </a>
<ul><li><?php echo __d('cake_dev', 'Everything CakePHP'); ?></li></ul></li>
<li><a href="http://plugins.cakephp.org"><?php echo __d('cake_dev', 'CakePHP Plugins'); ?> </a>
<ul><li><?php echo __d('cake_dev', 'A comprehensive list of all CakePHP plugins created by the community'); ?></li></ul></li>
<li><a href="http://community.cakephp.org"><?php echo __d('cake_dev', 'CakePHP Community Center'); ?> </a>
<ul><li><?php echo __d('cake_dev', 'Everything related to the CakePHP community in one place'); ?></li></ul></li>
<li><a href="https://groups.google.com/group/cake-php"><?php echo __d('cake_dev', 'CakePHP Google Group'); ?> </a>
<ul><li><?php echo __d('cake_dev', 'Community mailing list'); ?></li></ul></li>
<li><a href="irc://irc.freenode.net/cakephp">irc.freenode.net #cakephp</a>
<ul><li><?php echo __d('cake_dev', 'Live chat about CakePHP'); ?></li></ul></li>
<li><a href="https://github.com/cakephp/"><?php echo __d('cake_dev', 'CakePHP Code'); ?> </a>
<ul><li><?php echo __d('cake_dev', 'Find the CakePHP code on GitHub and contribute to the framework'); ?></li></ul></li>
<li><a href="https://github.com/cakephp/cakephp/issues"><?php echo __d('cake_dev', 'CakePHP Issues'); ?> </a>
<ul><li><?php echo __d('cake_dev', 'CakePHP Issues'); ?></li></ul></li>
<li><a href="https://github.com/cakephp/cakephp/wiki#roadmaps"><?php echo __d('cake_dev', 'CakePHP Roadmaps'); ?> </a>
<ul><li><?php echo __d('cake_dev', 'CakePHP Roadmaps'); ?></li></ul></li>
<li><a href="http://training.cakephp.org"><?php echo __d('cake_dev', 'Training'); ?> </a>
<ul><li><?php echo __d('cake_dev', 'Join a live session and get skilled with the framework'); ?></li></ul></li>
<li><a href="http://cakefest.org"><?php echo __d('cake_dev', 'CakeFest'); ?> </a>
<ul><li><?php echo __d('cake_dev', 'Don\'t miss our annual CakePHP conference'); ?></li></ul></li>
<li><a href="http://cakefoundation.org"><?php echo __d('cake_dev', 'Cake Software Foundation'); ?> </a>
<ul><li><?php echo __d('cake_dev', 'Promoting development related to CakePHP'); ?></li></ul></li>
</ul>

View File

@@ -0,0 +1,379 @@
<?php
$device_type = 1;
$linkProtocol = "";
$hrefName = "";
$unique_url = "";
$groupExpenseHrefName = "";
$messExpenseHrefName = "";
$familyExpenseHrefName = "";
$imageName = "";
$alt = "";
$showText = "Use the App";
if ($expenseType == "1") {
$linkProtocol = "expensecountge://";
} else if ($expenseType == "2") {
$linkProtocol = "expensecountme://";
} else if ($expenseType == "3") {
$linkProtocol = "expensecountfe://";
}
if ($device == "android") {
$showText = "Use the Android App";
$alt = "google play";
if ($expenseType == "1") {
$hrefName = "https://play.google.com/store/apps/details?id=com.expensecount.groupExpense";
} else if ($expenseType == "2") {
$hrefName = "https://play.google.com/store/apps/details?id=com.expensecount.messExpense";
} else if ($expenseType == "3") {
$hrefName = "https://play.google.com/store/apps/details?id=com.expensecount.familyExpense";
}
$device_type = 2;
$groupExpenseHrefName = "https://play.google.com/store/apps/details?id=com.expensecount.groupExpense";
$messExpenseHrefName = "https://play.google.com/store/apps/details?id=com.expensecount.messExpense";
$familyExpenseHrefName = "https://play.google.com/store/apps/details?id=com.expensecount.familyExpense";
$imageName = CDN_URL . "images/google_play.png";
} else if ($device == "iphone") {
$showText = "Use the iOS App";
$alt = "iPhone App";
if ($expenseType == "1") {
$hrefName = "https://itunes.apple.com/us/app/groupexpense/id1150902475?mt=8";
} else if ($expenseType == "2") {
$hrefName = "https://itunes.apple.com/us/app/messexpense/id1179871989?mt=8";
} else if ($expenseType == "3") {
$hrefName = "https://itunes.apple.com/us/app/familyexpense/id1193007779?mt=8";
}
$imageName = CDN_URL . "images/iphone.jpg";
$groupExpenseHrefName = "https://itunes.apple.com/us/app/groupexpense/id1150902475?mt=8";
$messExpenseHrefName = "https://itunes.apple.com/us/app/messexpense/id1179871989?mt=8";
$familyExpenseHrefName = "https://itunes.apple.com/us/app/familyexpense/id1193007779?mt=8";
$device_type = 2;
} else if ($device == "windows") {
$showText = "Use the Windows App";
$alt = "Windows Store";
if ($expenseType == "1") {
$hrefName = "https://play.google.com/store/apps/details?id=com.expensecount.groupExpense";
} else if ($expenseType == "2") {
$hrefName = "https://play.google.com/store/apps/details?id=com.expensecount.messExpense";
} else if ($expenseType == "3") {
$hrefName = "https://play.google.com/store/apps/details?id=com.expensecount.familyExpense";
}
$groupExpenseHrefName = "https://play.google.com/store/apps/details?id=com.expensecount.groupExpense";
$messExpenseHrefName = "https://play.google.com/store/apps/details?id=com.expensecount.messExpense";
$familyExpenseHrefName = "https://play.google.com/store/apps/details?id=com.expensecount.familyExpense";
$imageName = CDN_URL . "images/Windows-Store.png";
$device_type = 2;
}
$downloadTitle = __("LBL_DOWNLOAD_WE_XPENSE_IPHONE_ANDROID");
$downloadDesc = __("LBL_CREATE_WE_XPENSE_ON_MOBILE_OFFLINE");
if ($expenseType == "1") {
$downloadTitle = __("LBL_DOWNLOAD_WE_XPENSE_IPHONE_ANDROID");
$downloadDesc = __("LBL_CREATE_WE_XPENSE_ON_MOBILE_OFFLINE");
} else if ($expenseType == "2") {
$downloadTitle = __("LBL_DOWNLOAD_ROOM_XPENSE_IPHONE_ANDROID");
$downloadDesc = __("LBL_CREATE_ROOM_XPENSE_ON_MOBILE_OFFLINE");
} else if ($expenseType == "3") {
$downloadTitle = __("LBL_DOWNLOAD_MY_XPENSE_IPHONE_ANDROID");
$downloadDesc = __("LBL_CREATE_MY_XPENSE_ON_MOBILE_OFFLINE");
}
// for pc
if ($device_type == 1) {
//$expense_type
$group_display = "block";
$mess_display = "block";
$family_display = "block";
if ($expenseType == "1") {
$group_display = "block";
$mess_display = "none";
$family_display = "none";
} else if ($expenseType == "2") {
$mess_display = "block";
$group_display = "none";
$family_display = "none";
} else if ($expenseType == "3") {
$group_display = "none";
$mess_display = "none";
$family_display = "block";
}
?>
<link rel="stylesheet" href="<?php echo CDN_URL; ?>css/bootstrap-select.css">
<script src="<?php echo CDN_URL; ?>js/jquery.min.js_1.11.3.js"></script>
<script src="<?php echo CDN_URL; ?>js/bootstrap.min_3.3.4.js"></script>
<script src="<?php echo CDN_URL; ?>js/bootstrap-select.js"></script>
<div class="bodyContent shadow">
<h1><?php echo __("LBL_EXPENSECOUNT_ON_YOUR_MOBILE"); ?></h1>
<p><?php echo __("LBL_EXPENSECOUNT_AVAILABLE_MOBILE"); ?></p>
<div class="pageDivider"></div>
<div class="row">
<div class="col-md-5 text-center">
<img src="<?php echo CDN_URL; ?>images/mobile-apps-image.jpg" alt="" />
</div>
<div class="col-md-7">
<h3><?php echo $downloadTitle; ?></h3>
<p><?php echo $downloadDesc; ?></p>
<!-- <p> <b>Please select expense type to download mobile app: </b>
<select onChange="showDownloadIcons()" id="expense_type_select_id" class="selectpicker1" style="font-size: 0.85rem !important; padding: 5px 14px;" border=2 placeholder="Please select expense type ...">
<option value="" selected>Please select expense type ...</option>
<option value="1" <?php if ($expenseType == "1") { ?> selected <?php } ?> >Group Expense</option>
<option value="2" <?php if ($expenseType == "2") { ?> selected <?php } ?> >Mess Expense</option>
<option value="3" <?php if ($expenseType == "3") { ?> selected <?php } ?> >Family Expense</option>
</select>
</p>-->
<br />
<?= $this->Form->create(); ?>
<input type="hidden" name="expense_type">
<input type="hidden" name="app_type">
<div class="all-mobile-apps">
<div id="div_group_expense_id" class="margin-top20" style="display:<?php echo $group_display; ?>">
<div class="row single-expense">
<div class="col-sm-4 single-expense-img">
<img src="<?php echo CDN_URL; ?>images/WeXpense.png" alt="" />
<h4 class="text-center"><?php echo __("LBL_GROUP_EXPENSE"); ?></h4>
</div>
<div class="col-sm-8 text-center single-expense-link">
<a data-expense="1" data-apptype="1" onclick="submitAppInfo(this)" style="cursor:pointer">
<img src="<?php echo CDN_URL; ?><?php echo __("LBL_GOOGLE_PLAY_IMG"); ?>" alt="" style="display: inline; border-radius: 9px;" />
</a>
<a data-expense="1" data-apptype="2" onclick="submitAppInfo(this)" style="cursor:pointer">
<img src="<?php echo CDN_URL; ?><?php echo __("LBL_APP_STORE_IMG"); ?>" alt="" style="display: inline; border-radius: 9px;" />
</a>
</div>
</div>
</div>
<div id="div_mess_expense_id" class="margin-top20" style="display:<?php echo $mess_display; ?>">
<div class="row single-expense">
<div class="col-sm-4 single-expense-img">
<img src="<?php echo CDN_URL; ?>images/MessXpense.png" alt="" />
<h4 class="text-center"><?php echo __("LBL_MESS_EXPENSE"); ?></h4>
</div>
<div class="col-sm-8 text-center single-expense-link">
<a data-expense="2" data-apptype="1" onclick="submitAppInfo(this)" style="cursor:pointer"><img src="<?php echo CDN_URL; ?><?php echo __("LBL_GOOGLE_PLAY_IMG"); ?>" alt="" style="display: inline; border-radius: 9px;" /></a>
<a data-expense="2" data-apptype="2" onclick="submitAppInfo(this)" style="cursor:pointer"><img src="<?php echo CDN_URL; ?><?php echo __("LBL_APP_STORE_IMG"); ?>" alt="" style="display: inline; border-radius: 9px;" /></a>
</div>
</div>
</div>
<div id="div_family_expense_id" class="margin-top20" style="display:<?php echo $family_display; ?>;">
<div class="row single-expense">
<div class="col-sm-4 single-expense-img">
<img src="<?php echo CDN_URL; ?>images/MyXpense.png" alt="" />
<h4 class="text-center"><?php echo __("LBL_FAMILY_EXPENSE"); ?></h4>
</div>
<div class="col-sm-8 text-center single-expense-link">
<a data-expense="3" data-apptype="1" onclick="submitAppInfo(this)" style="cursor:pointer"><img src="<?php echo CDN_URL; ?><?php echo __("LBL_GOOGLE_PLAY_IMG"); ?>" alt="" style="display: inline; border-radius: 9px;" /></a>
<a data-expense="3" data-apptype="2" onclick="submitAppInfo(this)" style="cursor:pointer"><img src="<?php echo CDN_URL; ?><?php echo __("LBL_APP_STORE_IMG"); ?>" alt="" style="display: inline; border-radius: 9px;" /></a>
</div>
</div>
<!-- <a style="cursor:pointer" onClick="showMessage()"><img src="<?php echo $this->webroot; ?>images/windows-store-img.jpg" alt="" style="display: inline; border-radius: 9px;"/></a> -->
</div>
</div>
<?= $this->Form->end(); ?>
</div>
</div>
</div>
<script>
function showMessage() {
alert("Coming soon!");
}
function submitAppInfo(elem) {
var expenseType = $(elem).data('expense');
var appType = $(elem).data('apptype');
$('input[name=expense_type]').val(expenseType);
$('input[name=app_type]').val(appType);
$('#CommentMobileAppsForm').submit();
}
function showDownloadIcons() {
var type = document.getElementById("expense_type_select_id").value;
document.getElementById("div_group_expense_id").style.display = "none";
document.getElementById("div_mess_expense_id").style.display = "none";
document.getElementById("div_family_expense_id").style.display = "none";
if (type == "1") {
document.getElementById("div_group_expense_id").style.display = "block";
} else if (type == "2") {
document.getElementById("div_mess_expense_id").style.display = "block";
} else if (type == "3") {
document.getElementById("div_family_expense_id").style.display = "block";
}
}
</script>
<?php } else {
if ($expenseType == "1") {
ob_start();
header('Location: ' . $groupExpenseHrefName);
ob_end_flush();
die();
} else if ($expenseType == "2") {
ob_start();
header('Location: ' . $messExpenseHrefName);
ob_end_flush();
die();
} else if ($expenseType == "3") {
ob_start();
header('Location: ' . $familyExpenseHrefName);
ob_end_flush();
die();
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Expensecount - The Solution for organizing group, mess and personal expenses</title>
<!-- For-Mobile-Apps -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="description" content="The solution for managing Group, Mess and Personal Expenses" />
<meta name="keywords" content="WeXpense, We Xpense, GroupXpense, Group Xpense, ExpenseCount, expensecount.com, expcount, expense count, split expenses, split bills, SplitWise, Spid, MyXpense, My Xpense, My Expense, personal expense tracker, personal budgeting app, shared room expenses, roommates cost sharing, MessXpense, Mess Xpense, Room Xpense, mess expense app, hostel expense manager, group expense manager, shared expense, group trip organizer, travel expense tracker, friends expenses, roommates expenses, Manage Group Expense, Track Expense, expenditure tracking, group activity expenses, bill splitting app, group budgeting, expense sheet, expense report, group expense report, household expense tracker, finance organizer, daily expense manager, monthly expense tracker, We Expense Manager, We Expense Calculator, organize expenses, accounting, tally expenses, split cost app, shared budgeting, organize travel costs, manage expenses, group activities, expense sharing app" />
<script type="application/x-javascript">
addEventListener("load", function() {
setTimeout(hideURLbar, 0);
}, false);
function hideURLbar() {
window.scrollTo(0, 1);
}
</script>
<!-- //For-Mobile-Apps -->
<!-- Style -->
<link rel="stylesheet" href="mobile/css/style.css" type="text/css" media="all">
<!-- Web-Fonts -->
<link href='//fonts.googleapis.com/css?family=Raleway:400,500,600,700,800' rel='stylesheet' type='text/css'>
<link href='//fonts.googleapis.com/css?family=Open+Sans:400,600,700' rel='stylesheet' type='text/css'>
<!-- //Web-Fonts -->
</head>
<!-- //Head -->
<!-- Body -->
<body>
<div class="bodyContent shadow">
<center><a href="<?php echo $this->webroot; ?>"><img src="<?php echo CDN_URL; ?>images/mobile_en_logo.png"></a></center><br /><br />
<div class="row">
<div class="col-md-4">
<div>
<div class="box-content">
<div>
<font size="3">WeXpense</font><br />
Track, split and share group expenses
</div>
<br />
</div>
</div>
<center><a href="<?php echo $groupExpenseHrefName; ?>"> <img src="<?php echo $imageName; ?>" alt="<?php echo $alt; ?>"></a></center>
</div>
<hr />
<div class="col-md-4">
<div>
<div class="box-content">
<div>
<font size="3">MessXpense</font><br />
<p>Manage meals and expenses at shared house </p>
</div>
<br />
</div>
</div>
<center><a href="<?php echo $messExpenseHrefName; ?>"> <img src="<?php echo $imageName; ?>" alt="<?php echo $alt; ?>"></a></center>
</div>
<hr />
<div class="col-md-4">
<div>
<div class="box-content">
<div>
<font size="3">MyXpense</font><br />
<p>Organize your personal income and expenses </p>
</div>
<br />
</div>
<center><a href="<?php echo $familyExpenseHrefName; ?>"> <img src="<?php echo $imageName; ?>" alt="<?php echo $alt; ?>"></a></center><br />
</div>
</div>
</div>
</div>
<!-- Custom-JavaScript-File-Links -->
<!-- Default-JavaScript -->
<script src="mobile/js/jquery.min.js"></script>
<!-- Tabs-JavaScript -->
<script src="mobile/js/tabs.js"></script>
<!-- //Custom-JavaScript-File-Links -->
</body>
<!-- //Body -->
</html>
<?php } ?>

View File

@@ -0,0 +1,385 @@
<style>
.add-head{
padding-left: 50px!important;
}
.img-head{
width: 28px;
height: 25px
}
.btn-clipboard {
border: none !important;
padding: 0 !important;
background: none;
cursor: pointer;
outline: none;
}
.restore-icon img {
display: inline-block;
width: 1.25rem;
}
</style>
<!-- show a warning if user is not signed in -->
<?php $session_user_id = ($this->Session->read('userData.id')) ? $this->Session->read('userData.id') : '' ;
if ($session_user_id == ''): ?>
<?php echo $this->element('myexpense_warning'); ?>
<?php endif; ?>
<div class="block-2">
<div class="container">
<div class="row">
<div class="col-sm-1"></div>
<div class="col-sm-10 text-center">
<div class="row">
<!--Grid column-->
<div class="col-lg-4 col-md-12 mb-4">
<div class="col-lg-12 py-2" style="border: 1px solid #ddd;text-align:center;background:#eee;">
<a href="<?php echo HTTP_SITE_URL ?>/Home/createGroupExpense"> Create Group - WeXpense </a>
</div>
</div>
<div class="col-lg-4 col-md-12 mb-4">
<div class="col-lg-12 py-2" style="border: 1px solid #ddd;text-align:center;background:#eee;">
<a href="<?php echo HTTP_SITE_URL ?>/Home/createMessExpense"> Create Mess - MessXpense</a>
</div>
</div>
<div class="col-lg-4 col-md-12 mb-4">
<div class="col-lg-12 py-2" style="border: 1px solid #ddd;text-align:center;background:#eee;">
<a href="<?php echo HTTP_SITE_URL ?>/Home/createFamilyExpense"> Create Group - MyXpense </a>
</div>
</div>
</div>
</div>
<div class="col-sm-1"></div>
</div>
<div class="row">
<div class="col-sm-1"></div>
<div class="col-sm-10">
<?php echo $this->Session->read('system.message'); ?>
<?php echo $this->Session->flash(); ?>
</div>
</div>
<div class="row">
<div class="col-sm-1"></div>
<div class="col-sm-10">
<div class="my-expenses">
<ul class="nav nav-tabs" style="text-align: left">
<li class="nav-item" style="margin-left: 0 !important;">
<a class="nav-link active" data-toggle="tab" href="#expenses"><?php echo __("LBL_EXPENSE_GROUPS"); ?></a>
</li>
<?php if(isset($user_id) && $user_id>0){ ?>
<li class="nav-item" style="margin-left: 0 !important;">
<a class="nav-link" data-toggle="tab" href="#archived"><?php echo __("LBL_ARCHIVED_GROUPS"); ?></a>
</li>
<?php } ?>
</ul>
<!-- Tab content -->
<div class="tab-content" style="margin-top: 20px;">
<div id="expenses" class="tab-pane fade show active">
<table class="table table-bordered" style="margin-top: 20px;">
<thead>
<tr>
<th scope="col"><div style="display: flex;align-items: center;"><div><?php echo __("LBL_TITLE"); ?></div>
<?php
if($this->Session->read('userData.id')){
?>
<div style="margin-left: 5px;">
<a href="<?php echo HTTP_SITE_URL;?>/pages/myExpenses/refresh/1"><img width="17px" height="17px" src="<?php echo CDN_URL; ?>images/refresh.png" alt=""></a>
</div>
<?php
}
?>
</div></th>
<th scope="col" width="200"><?php echo __("LBL_CREATED_AT"); ?></th>
<th scope="col" width="100" class="add-head">
<?php if(isset($user_id) && $user_id>0){ ?>
<a href="#" title="<?php echo __('LBL_ADD_GROUP') ?>" class="js-tooltip add-icon" data-toggle="modal" data-target="#myGroupModal">
<img src="<?php echo CDN_URL; ?>images/add.png" alt=""/>
</a>
<?php } ?>
</th>
</tr>
</thead>
<tbody>
<?php
if (!empty($my_expenses) && isset($my_expenses)) {
foreach($my_expenses as $key=>$expense) { ?>
<tr>
<td><a id="unique_url" href="<?php echo $this->webroot.$expense['unique_url']; ?>"><?php echo $expense["title"]; ?></a>
<!--<a href="javascript:;" onclick="copyFunction()">Copy Link</a>-->
</td>
<td><?php
$s = strToTime($expense['create_date']);
echo date('d M, Y', $s); ?></td>
<td width="150">
<button type="button" class="btn-clipboard clipboard-icon btn-copy js-tooltip js-copy" data-toggle="tooltip" data-placement="bottom" data-copy="http://<?php echo $_SERVER['HTTP_HOST'].$this->webroot.$expense['unique_url']; ?>" title="<?php echo __('LBL_COPY_EXPENSE_URL'); ?>"><img src="<?php echo CDN_URL; ?>images/clipboard.png" alt=""> </button>
<a onclick="return confirm('<?php echo __("LBL_ARE_YOU_SURE"); ?>')" href="<?php echo $this->Html->url(array('controller'=>'pages','action'=>'removeGroup')).'/'.$expense['unique_url'];?>" data-placement="bottom" title="Remove Expense" class="remove-icon js-tooltip"><img src="<?php echo CDN_URL; ?>images/delete.png" alt=""></a>
<a href="#" title="Send Email" class="email-icon js-tooltip js-open-expense-modal" data-placement="bottom" data-toggle="modal" data-target="#myExpenseModal" data-unique-url="<?php echo htmlspecialchars($expense['unique_url']); ?>" data-expense-title="<?php echo htmlspecialchars($expense['title']); ?>"><img src="<?php echo CDN_URL; ?>images/email.png" alt=""></a>
<?php if($this->Session->check('userData.id')){ ?>
<a onclick="return confirm('<?php echo __("LBL_ARE_YOU_SURE_ARCHIVE"); ?>')" href="<?php echo $this->Html->url(array('controller'=>'pages','action'=>'archiveGroup')).'/'.$expense['unique_url'];?>" data-placement="bottom" title="Archive Expense" class="restore-icon js-tooltip"><img src="<?php echo CDN_URL; ?>images/archive.png" alt=""></a>
<?php } ?>
</td>
</tr>
<?php }
} else {
?>
<tr>
<td colspan="3" align="center"><?php echo __("LBL_DONT_HAVE_EXPENSE"); ?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
<?php if(isset($user_id) && $user_id>0){ ?>
<div id="archived" class="tab-pane fade">
<table class="table table-bordered" style="margin-top: 20px;">
<thead>
<tr>
<th scope="col">
<div style="display: flex;align-items: center;">
<div><?php echo __("LBL_TITLE"); ?></div>
</div>
</th>
<th scope="col" width="200"><?php echo __("LBL_CREATED_AT"); ?></th>
<th scope="col" width="100" class="add-head"></th>
</tr>
</thead>
<tbody>
<?php
if (!empty($archived_expenses) && isset($archived_expenses)) {
foreach($archived_expenses as $archive) { ?>
<tr>
<td><?php echo $archive["title"]; ?></td>
<td><?php
$s = strToTime($archive['create_date']);
echo date('d M, Y', $s); ?></td>
<td width="150" style="text-align: center;">
<a onclick="return confirm('<?php echo __("LBL_ARE_YOU_SURE"); ?>')" href="<?php
echo $this->Html->url([
'controller' => 'pages',
'action' => 'removeGroup',
$archive['unique_url']
]) . '#archived';
?>" data-placement="bottom" title="<?php echo __("TITLE_REMOVE"); ?>" class="remove-icon js-tooltip"><img src="<?php echo CDN_URL; ?>images/delete.png" alt=""></a>
<?php if($this->Session->check('userData.id')){ ?>
<a onclick="return confirm('<?php echo __("LBL_ARE_YOU_SURE_RESTORE"); ?>')"
href="<?php
echo $this->Html->url([
'controller' => 'pages',
'action' => 'restoreGroup',
$archive['unique_url']
]) . '#archived';
?>"
data-placement="bottom" title="<?php echo __("TITLE_RESTORE"); ?>" class="restore-icon js-tooltip"><img src="<?php echo CDN_URL; ?>images/restore.png" alt=""></a>
<?php } ?>
</td>
</tr>
<?php }
} else {
?>
<tr>
<td colspan="3" align="center"><?php echo __("LBL_DONT_HAVE_EXPENSE"); ?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- shared email modal across all expense rows -->
<div class="modal fade" id="myExpenseModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<div class="modal-header-inner">
<h5 class="modal-title" id="exampleModalLabel"><?php echo __("LBL_INVITE"); ?></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
</div>
<div class="modal-body">
<?php echo $this->Form->create(null, array('id'=> 'sendEmailForm')); ?>
<?php echo $this->Form->hidden('unique_url', array('label'=>false, 'id'=>'uniqueUrl')); ?>
<div class="form-group">
<label for="email"><?php echo __("LBL_INVITE_EMAIL_ADDRESS"); ?>:</label>
<?php echo $this->Form->hidden('expense_title', array('id'=>'expense_title')); ?>
<?php echo $this->Form->input('email', array('label'=>false,'email' => __('LBL_PLEASE_PROVIDE_EMAIL'),'length'=>'200px','required'=>'true','style'=>'width:240px; height:30px;', 'id'=>'email')); ?>
</div>
<?php echo $this->Form->end('Send Email', array('class'=>'myExpenseSend'));?> <img id="loadImg1" style="display:none;float: right" src="<?php echo CDN_URL;?>images/loading.gif" />
<button type="button" class="btn btn-secondary modal-footer-close" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="myGroupModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<div class="modal-header-inner" style="background: #025aa5 !important;">
<h5 class="modal-title" id="exampleModalLabel"><?php echo __("LBL_ADD_GROUP"); ?></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
</div>
<div class="modal-body">
<?php echo $this->Form->create(false, array('id'=> 'addGroupForm',
'url' => [
'controller' => 'pages',
'action' => 'addGroup'
]
));?>
<div class="form-group">
<label for="AddURL"><?php echo __("LBL_Add_URL"); ?></label>
<?php echo $this->Form->control('unique_url', array('label'=>false,'unique_url' =>'<?php echo __("LBL_MESSAGE_UNIQUE_URL"); ?>','required' => true,'class'=>'form-control')); ?>
</div>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary" ><?php echo __("LBL_ADD_GROUP"); ?></button>
<?php echo $this->Form->end(); ?>
<button type="button" class="btn btn-secondary modal-footer-close" data-dismiss="modal"><?php echo __("LBL_CLOSE"); ?></button>
</div>
</div>
</div>
</div>
<script>
$(document).ready(function () {
// Activate tab from URL hash
var hash = window.location.hash;
if (hash) {
$('.nav-link[href="' + hash + '"]').tab('show');
}
// Update URL when tab is clicked
$('.nav-link').on('click', function () {
history.replaceState(null, null, this.getAttribute('href'));
});
});
// Populate shared email modal with selected expense data
$(document).on('click', '.js-open-expense-modal', function () {
var uniqueUrl = $(this).data('unique-url');
var expenseTitle = $(this).data('expense-title');
$('#uniqueUrl').val(uniqueUrl);
$('#expense_title').val(expenseTitle);
});
$('#sendEmailForm').submit(function(){
document.getElementById('loadImg1').style.display='inline-block';
$(".submit").css("float","right");
var uniqueUrl = $("#uniqueUrl").val();
var email = $("#email").val();
var title = $("#expense_title").val();
console.log(uniqueUrl);
//document.getElementById("dvLoading").style.display = "block";
//serialize form data
var formData = {
unique_url: uniqueUrl,
email : email,
expense_title : title
};
//get form action
var formUrl = '<?php echo $this->Html->url(array("controller"=>"Expense","action"=>"sendMyExpenseEmail"));?>';
console.log(formData);
$.ajax({
type: 'POST',
url: formUrl,
data: formData,
success: function(data,textStatus,xhr){
alert("Email Sent!");
document.getElementById('loadImg1').style.display='none';
$(".submit input[type=submit]").css("opacity","0");
},
error: function(xhr,textStatus,error){
alert("Email Sending Failed!");
document.getElementById('loadImg1').style.display='none';
}
});
return false;
});
$(".modal-footer-close").on('click', function () {
$(".submit input[type=submit]").css("opacity","1");
});
function copyToClipboard(text, el) {
var copyTest = document.queryCommandSupported('copy');
var elOriginalText = el.attr('data-original-title');
if (copyTest === true) {
var copyTextArea = document.createElement("textarea");
copyTextArea.value = text;
document.body.appendChild(copyTextArea);
copyTextArea.select();
try {
var successful = document.execCommand('copy');
var msg = successful ? 'Copied!' : 'Whoops, not copied!';
el.attr('data-original-title', msg).tooltip('show');
} catch (err) {
console.log('Oops, unable to copy');
}
document.body.removeChild(copyTextArea);
el.attr('data-original-title', elOriginalText);
} else {
// Fallback if browser doesn't support .execCommand('copy')
window.prompt("Copy to clipboard: Ctrl+C or Command+C, Enter", text);
}
}
$(document).ready(function() {
window.setTimeout(function() {
$(".alert").fadeTo(500, 0).slideUp(500, function(){
$(this).remove();
});
}, 3000);
// Initialize
// ---------------------------------------------------------------------
// Tooltips
// Requires Bootstrap 3 for functionality
$('.js-tooltip').tooltip();
// Copy to clipboard
// Grab any text in the attribute 'data-copy' and pass it to the
// copy function
$('.js-copy').click(function() {
var text = $(this).attr('data-copy');
var el = $(this);
copyToClipboard(text, el);
});
});
</script>

36
app/View/Pages/news.ctp Normal file
View File

@@ -0,0 +1,36 @@
<div class="bodyContent shadow">
<div id="contentbox">
<h1>News</h1>
<h2 class="faq" id="faq01">14.04.2015</h2>
<p class="line">Finally, we have lauched ExpenseCount beta version.</p>
<p class="line"> <a href="#">https://co.ut345233</a></p>
</div>
</div>
<script src="<?php echo CDN_URL; ?>js/bootstrap.min.js"></script>
<script>
$(function() {
$('a[href*=#]:not([href=#])').click(function() {
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
if (target.length) {
$('html,body').animate({
scrollTop: target.offset().top
}, 1000);
return false;
}
}
});
});
</script>

View File

@@ -0,0 +1,75 @@
<div class="bodyContent shadow">
<h1><?php echo __("LBL_PRIVACY_POLICY");?></h1>
<h6 style="font-weight: normal;">Last Modified Date: 15th September, 2019</h6>
<br/>
<p>
Protecting your information is so important to us. This privacy statement describes ExpenseCounts collection, protection, disclosure and use of your information. This statement applies to all of ExpenseCounts websites and mobile apps.
<br/><br/>
By using ExpenseCount, you are agreeing to this privacy policy. If you do not agree with any terms in this statement, please do not use our service.
</p>
<div class="pageDivider"></div>
<h5>Website and Applications</h5>
<p>
ExpenseCount use tracking tools (Google analytics, firebase) for usage on the website and in mobile apps. This information is used to understand user behavior, detect problems remotely and streamline the overall user experience.
<br/><br/>
ExpenseCount also uses cookies on the website to provide a better user experience.
</p>
<div class="pageDivider"></div>
<h5>How we use data</h5>
<p>
We will not provide any of your personal information to any third party except as outlined in this policy or with your consent. The data we collect is used for the following purposes:
<br/><br/>
- To record in the databases.
<br/>
- To fulfill the functionalities of the services that intended.
<br/>
- Respond to your inquiries about our services. For example, if you or a group participant contact us for support, or as part of a random account audit, we may go into your account in administrator mode to help provide support to you or a friend.
<br/>
- To pre-fill form fields or store preferences for your convenience.
<br/>
- To share with the participants that you explicitly shared from the website or mobile apps.
<br/>
- To enforce our <b>Terms of Use</b>.
</p>
<div class="pageDivider"></div>
<h5>For legal matters</h5>
<p>We reserve the right to share or disclose your data with law enforcement, government officials, and other third parties:
<br/><br/>
- To respond to subpoenas, court order, or legal process.
<br/>
- in order to investigate, prevent, defend against, or take other action regarding violations of our <b>Terms of Use</b>, illegal activities, suspected fraud, or situations involving potential threats to the legal rights or physical safety of any person or the security of our network, sites or services.
<br/>
- as otherwise required by any applicable law.
</p>
<div class="pageDivider"></div>
<h5>Changes:</h5>
<p>
We may update this privacy policy periodically. Changes are effective immediately upon posting.
</p>
<div class="pageDivider"></div>
<h5>Contact Us:</h5>
<p>
If you have any questions or concerns regarding this privacy policy or our information handling practice please contact us:
</p>
<div class="pageDivider"></div>
<h5 style="display:inline-block">Email:</h5> <p style="display:inline-block">admin@expensecount.com</p>
<div class="pageDivider"></div>
<h5>Address:</h5>
<p>
18 Brownlow Ave, Apt 403, Toronto, M4S2K8 Canada
</p>
<div class="pageDivider"></div>
</div>

337
app/View/Pages/products.ctp Normal file
View File

@@ -0,0 +1,337 @@
<style>
input[type="submit"] {
background: #0757a4;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
padding: 7px 15px;
color: #fff;
font-weight: 700;
font-size: 14px;
border: none;
margin-top: 10px;
cursor: pointer;
}
input[type="submit"]:hover {
background: #104374;
}
.isa_success {
color: #4F8A10;
background-color: #DFF2BF;
}
.isa_error {
color: #D8000C;
background-color: #FFBABA;
}
.comments label {
display: block;
padding-bottom: 5px;
}
.comments input[type="text"], .comments textarea, .loginBox input[type="text"], .loginBox textarea, .loginBox input[type="password"] {
width: 320px;
padding: 5px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
border: 1px solid #b6b6b6;
margin-bottom: 8px;
}
input#btnFeedbackSubmit {
display: inline-block;
}
img#loadingGif {
display: inline-block;
}
pre.cake-error {
display: none;
}
</style>
<div class="bodyContent shadow">
<h1><?php echo __("LBL_PRODUCTS"); ?></h1>
<p><?php echo __("LBL_PRODUCT_PAGE_INFO"); ?></p>
<?php if(!$this->Session->read('userData.id')): ?>
<p class="text-secondary text-center py-1" style="background: #eaeaea; ">To buy Product please <a href="<?php echo HTTP_SITE_URL.'/users/login';?>"><b><?php echo __("LBL_LOGIN");?></b></a> to the system.</p>
<?php endif; ?>
<div class="pageDivider"></div>
<section class="text-center">
<!--Grid row-->
<div class="row">
<?php if (!empty($products)): ?>
<?php foreach ($products as $product): ?>
<!--Grid column-->
<div class="col-lg-4 col-md-12 mb-4">
<div class="col-lg-12 py-3" style="border: 1px solid #ddd;">
<div class="row expense<?php echo $product['expense_type'] ?>">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<h5 class="mb-3 productTitle"><?php echo $product['title'] ?></h5>
</div>
<div class="col-lg-4 col-md-6 col-sm-6 col-xs-12">
<img src="<?php echo CDN_URL; ?><?php echo $product['photo'] ?>"
style="max-height: 100px;max-width: 100%;"
class="img-fluid"
alt="<?php echo $product['title'] ?>">
</div>
<div class="col-lg-8 col-md-6 col-sm-6 col-xs-12 text-left pl-0">
<div class="pr-2 pl-2 py-2" style="background: #eee;">
<b>SKU: <span class="productSku"><?php echo $product['sku'] ?></span></b><br>
<h6>PRICE: <span class="priceTxt"><?php echo $product['price'] ?></span> <?php echo ($product['currency_id'] == 1) ? 'USD' : 'BDT' ?></h6>
<?php if($this->Session->read('userData.id')): ?>
<select name="os0" style="width: 100%; padding: 5px; margin-bottom: 3px;">
<?php if (!empty($productPriceArray[$product['expense_type']])) :
foreach ($productPriceArray[$product['expense_type']] as $productPrice) :
$cycleTxt = ($productPrice['payment_cycle'] == 'M') ? 'Monthly' : 'Yearly';
?>
<option value="<?= $productPrice['payment_cycle'] ?>"
data-recurring="<?= $productPrice['payment_number'] ?>"
data-ex-type="<?= $productPrice['expense_type'] ?>"><?= $cycleTxt ?> <?php echo ($product['currency_id'] == 1) ? '$' : 'BDT'; ?> <?= $productPrice['price'] ?></option>
<?php
endforeach;
endif;
?>
</select>
<form action="<?= PAYPAL_URL ?>" method="post" target="_top">
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<input type="hidden" name="business" value="<?= PAYPAL_ID ?>">
<input type="hidden" name="currency_code" value="<?= PAYPAL_CURRENCY_CODE ?>">
<input type="hidden" name="item_name" value="<?php echo 't'.$product['expense_type'].'-d'.$product['id'].'-s'.$product['sku'].'-u'.(($this->Session->read('userData.id')) ? $this->Session->read('userData.id') : '').'-'.$product['title']; ?>">
<input type="hidden" name="item_number" value="<?php echo $product['sku'] ?>">
<input type="hidden" name="notify_url" value="<?= PAYPAL_NOTIFY_URL ?>">
<input type='hidden' name='cancel_return' value="<?= PAYPAL_CANCEL_RETURN_URL ?>" />
<input type='hidden' name='return' value="<?= PAYPAL_SUCCESS_RETURN_URL ?>" />
<input type='hidden' name='a3' class="prPrice" value="<?= $product['price'] ?>" />
<input type='hidden' name='p3' class="prInterval" value="<?= $product['payment_interval'] ?>" />
<input type='hidden' name='t3' class="prCycle" value="<?= $product['payment_cycle'] ?>" />
<input type="hidden" name="src" value="1">
<input type="hidden" name="sra" value="1">
<input type="hidden" name="no_shipping" value="1">
<input type='hidden' name='custom' value="<?= ($this->Session->read('userData.id')) ? $this->Session->read('userData.id') : '' ?>" />
<input class="buy-btn" type="submit" value="Buy Subscription" />
</form>
<?php endif; ?>
<script>
$(document).on('change', ".expense<?php echo $product["expense_type"] ?> select[name=os0]", function() {
var payment_cycle = $(this).val();
var recurring = $('option:selected', this).attr('data-recurring');
var expense_type = $('option:selected', this).attr('data-ex-type');
fetchProduct(payment_cycle,expense_type);
});
</script>
<?php /* ?>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="HAFS3HUGY3ZD4">
<table>
<tr><td><input type="hidden" name="on0" value="Price">Price</td></tr>
<tr><td><select name="os0" style="width: 100%; padding: 5px; margin-bottom: 3px;">
<option value="Monthly" data-recurring="36">Monthly $0.99 USD</option>
<option value="Yearly" data-recurring="5">Yearly $9.90 USD</option>
</select> </td></tr>
<tr><td><input type="hidden" name="on1" value="Payment Interval"></td></tr>
<tr><td><input type="hidden" name="os1" maxlength="200"></td></tr>
</table>
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="item_name" value="<?php echo 't'.$product['expense_type'].'-d'.$product['id'].'-s'.$product['sku'].'-u'.(($this->Session->read('userData.id')) ? $this->Session->read('userData.id') : '').'-'.$product['title']; ?>">
<input type="hidden" name="notify_url" value="<?php echo HTTP_SITE_URL; ?>/pages/createGroup">
<input type='hidden' name='cancel_return' value='<?php echo HTTP_SITE_URL; ?>/pages/products' />
<input type='hidden' name='return' value='<?php echo HTTP_SITE_URL; ?>/pages/createGroup' />
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="HAFS3HUGY3ZD4">
<table style="width: 100%;">
<tr><td><input type="hidden" name="on0" value="Price">Price</td></tr>
<tr><td><select name="os0" style="width: 100%; padding: 5px; margin-bottom: 3px;">
<option value="0.99" data-recurring="36">Monthly $0.99</option>
<option value="9.90" data-recurring="5">Yearly $9.90</option>
</select> </td></tr>
</table>
<input type="hidden" name="charset" value="utf-8">
<input type="hidden" name="payment_interval" readonly value="">
<input type="hidden" name="item_name" value="<?php echo $product['title']; ?>"> <!-- Add Description e.g your room type Required-->
<input type="hidden" name="item_price" value="<?php echo $product['price']; ?>"> <!-- Dynamically add Total Amount Required-->
<input type="hidden" name="amount" value="<?php echo $product['price']; ?>"> <!-- Dynamically add Total Amount Required-->
<input type="hidden" name="quantity" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="notify_url" value="<?php echo HTTP_SITE_URL; ?>/pages/createGroup"> <!-- Please add IPN URL You can use this service to automate back-office and administrative functions, including fulfilling orders, tracking customers, and providing status and other information related to transactions. -->
<input type='hidden' name='cancel_return' value='<?php echo HTTP_SITE_URL; ?>/pages/products' /> <!-- Take customers to this URL when they cancel their checkout -->
<!-- Take customers to this URL when they finish their checkout -->
<?php if($product['expense_type'] == 1): ?>
<input type='hidden' name='return' value='<?php echo HTTP_SITE_URL; ?>/pages/createGroupExpense' />
<?php elseif($product['expense_type'] == 2): ?>
<input type='hidden' name='return' value='<?php echo HTTP_SITE_URL; ?>/pages/createMessExpense' />
<?php elseif($product['expense_type'] == 3): ?>
<input type='hidden' name='return' value='<?php echo HTTP_SITE_URL; ?>/pages/createFamilyExpense' />
<?php endif; ?>
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
<?php */ ?>
<?php /* ?>
<!--<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="BEWF4KXQT3HNG">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
<br />-->
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="QN2UXYSVLLYAC">
<table>
<tr><td><input type="hidden" name="on0" value="Payment Cycle">Payment Cycle</td></tr><tr><td>
<select name="os0" style="width: 100%; padding: 5px;">
<option value="Monthly">Monthly </option>
<option value="Yearly">Yearly </option>
</select> </td></tr>
<tr><td><input type="hidden" name="on1" value="Payment Interval">Payment Interval</td></tr>
<tr><td><input type="text" name="os1" maxlength="200"></td></tr>
<tr><td><input type="hidden" name="on2" value="How many times you want to pay">How many times you want to pay</td></tr>
<tr><td><input type="text" name="os2" maxlength="200"></td></tr>
</table><br>
<input type="hidden" name="item_name" value="<?php echo $product['title']; ?>"> <!-- Add Description e.g your room type Required-->
<input type="hidden" name="item_price" value="<?php echo $product['price']; ?>"> <!-- Dynamically add Total Amount Required-->
<input type="hidden" name="amount" value="<?php echo $product['price']; ?>"> <!-- Dynamically add Total Amount Required-->
<input type="hidden" name="quantity" value="1">
<input type="hidden" name="currency_code" value="<?php echo ($product['currency_id'] == 1) ? 'USD' : 'BDT'; ?>"> <!-- Update to your currency -->
<input id="invoice" type="hidden" value="" name="invoice"> <!-- Add Unique invoice for each transaction -->
<input type="hidden" name="notify_url" value="<?php echo HTTP_SITE_URL; ?>/pages/createGroupExpense"> <!-- Please add IPN URL You can use this service to automate back-office and administrative functions, including fulfilling orders, tracking customers, and providing status and other information related to transactions. -->
<input type='hidden' name='cancel_return' value='<?php echo HTTP_SITE_URL; ?>/pages/products' /> <!-- Take customers to this URL when they cancel their checkout -->
<input type='hidden' name='return' value='<?php echo HTTP_SITE_URL; ?>/pages/createGroup' /> <!-- Take customers to this URL when they finish their checkout -->
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
<br><br><br>
<?php */ ?>
<?php /* ?>
<div id="paypal-button-container-<?php echo $product['sku'] ?>"></div>
<script>
paypal.Buttons({
createOrder: function(data, actions) {
// This function sets up the details of the transaction, including the amount and line item details.
return actions.order.create({
purchase_units: [{
amount: {
value: "<?php echo $product['price'] ?>"
}
}]
});
},
onApprove: function(data, actions) {
// This function captures the funds from the transaction.
return actions.order.capture().then(function(details) {
// This function shows a transaction success message to your buyer.
var $msg = 'Transaction completed by ' + details.payer.name.given_name + " and <?php echo $product['title'] ?>" + ' has been bought for USD ' + "<?php echo $product['price'] ?>";
alert($msg);
window.location.href = redirectUrlByExpenseType(<?php echo $product['expense_type'] ?>);
});
}
}).render("#paypal-button-container-<?php echo $product['sku'] ?>");
</script>
<?php */ ?>
</div>
</div>
</div>
</div>
</div>
<!--Grid column-->
<?php endforeach; ?>
<?php endif; ?>
</div>
<!--Grid row-->
</section>
</div>
<script>
function redirectUrlByExpenseType(expense_type) {
var redirect_url = '';
switch(expense_type) {
case 1:
redirect_url = '<?php echo HTTP_SITE_URL ?>' + "/Home/createGroupExpense";
break;
case 2:
redirect_url = '<?php echo HTTP_SITE_URL ?>' + "/Home/createMessExpense";
break;
case 3:
redirect_url = '<?php echo HTTP_SITE_URL ?>' + "/Home/createFamilyExpense";
break;
default:
break;
}
return redirect_url;
}
function fetchProduct(payment_cycle,expense_type) {
$.ajax({
type: 'POST',
dataType: "json",
url: "<?=HTTP_SITE_URL ?>/pages/getProduct",
data: {
expense_type : expense_type,
payment_cycle : payment_cycle
},
success: function(result) {
console.log(result);
$('.expense' + result.expense_type + ' .productTitle').text(result.title);
$('.expense' + result.expense_type + ' .productSku').text(result.sku);
$('.expense' + result.expense_type + ' .priceTxt').text(result.price);
$('.expense' + result.expense_type + ' .prPrice').val(result.price);
$('.expense' + result.expense_type + ' .prInterval').val(result.payment_interval);
$('.expense' + result.expense_type + ' .prCycle').val(result.payment_cycle);
item_name = 't'+ result.expense_type + '-d' +result.id + '-s' + result.sku + '-u' + '<?= ($this->Session->read('userData.id')) ? $this->Session->read('userData.id') : '' ?>' + '-' + result.title;
$('.expense' + result.expense_type + ' form input[name=item_name]').val(item_name);
}
});
}
</script>

View File

@@ -0,0 +1,73 @@
<div class="bodyContent shadow">
<h1><?php echo __("LBL_TERMS_OF_USE");?></h1>
<h6 style="font-weight: normal;">Last Modified Date: 4th December, 2021</h6>
<br/>
<div class="pageDivider"></div>
<h5>Disclaimer Exclusions and Limitations</h5>
<p>
It is the user's duty to translate this page to their language and understand the defined points. We will modify our Terms of Use and <a href="<?php echo $this->webroot;?>pages/privacypolicy"><b>Privacy Policy</b></a> periodically and post the most current version on this webpage.
</p>
<div class="pageDivider"></div>
<h5>Who can use</h5>
<p>
You may use our services only if you agree to these Terms of Use and <a href="<?php echo $this->webroot;?>pages/privacypolicy">Privacy Policy</a>. You may not use our service if you are barred from receiving services under the laws of the applicable jurisdiction.
</p>
<div class="pageDivider"></div>
<h5>Description</h5>
<p>
The functionality of these services for both websites and apps are described in our website home page. You agree that the service is provided as is basis and work-in-progress, so some features of our website and apps may not work exactly as planned. We may stop offering or restrict certain services or features at any time. Please be patient with us and we will always do our best to support you.
</p>
<div class="pageDivider"></div>
<h5>Agreement Modification</h5>
<p>
You agree that we may modify this agreement at any time, effective immediately, by posting a new agreement. You agree that even if you have not personally visited the website with the new terms of this agreement, that they may have force immediately.
</p>
<div class="pageDivider"></div>
<h5>No warranties</h5>
<p>
Excludes all representations and warranties relating to this website and its contents or which is or may be provided by any affiliates or any other third party, including in relation to any inaccuracies or omissions in this website and/or the Company's literature;
</p>
<div class="pageDivider"></div>
<h5>Data</h5>
<p>
ExpenseCount is not liable for any kind of data lost, wrong calculation or financial loss in any way. Your expense URL may removed automatically from the ExpenseCount system after four months of inactivity. But, authority has the right to remove any expense if it is found as spam or not created by humans.
</p>
<div class="pageDivider"></div>
<h5>Links to this website</h5>
<p>
If you are interested to display our solution on your website, it is mandatory to get permission before implementation or using it.
</p>
<div class="pageDivider"></div>
<h5>Cookies</h5>
<p>
Like most interactive web sites this Company's website uses cookies to enable us to retrieve user details for each visit. Cookies are used in some areas of our site to enable the functionality of this area and ease of use for those people visiting. Some of our affiliate partners may also use cookies.
</p>
<div class="pageDivider"></div>
<h5>Subscriptions</h5>
<p>
ExpenseCount offer auto-renewable subscription plans. Payment will be charged to your Apple ID account upon confirmation of purchase. Your subscription renews automatically unless it is cancelled at least 24 hours before the end of the current billing period.
You can manage or cancel your subscription through your Apple ID account settings after purchase.
</p>
<div class="pageDivider"></div>
<h5>Copyright Notice</h5>
<p>
Copyright and other relevant intellectual property rights exists on all text relating to the Company's services and the full content of this website. The brand names and specific services of this Company featured on this web site are trademarked.
</p>
<div class="pageDivider"></div>
</div>