Code Context <li class="dropdown">
<?php if(!empty($tz)):?>
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" title="Change your TimeZone"><span class="changeTimeZone"><span class="fa fa-map-marker"></span> <?php echo $tz_list[$this->Session->read('Auth.User.timezones_id')]; ?></span> <span class="caret"></span></a>
$viewFile = '/var/www/html/ballotmini/app/View/Elements/navbar.ctp'
$dataForView = array(
'debugToolbarPanels' => array(
'history' => array(
'content' => array(
[maximum depth reached]
),
'elementName' => 'history_panel',
'plugin' => 'DebugKit',
'title' => null,
'disableTimer' => true
),
'session' => array(
'content' => null,
'elementName' => 'session_panel',
'plugin' => 'DebugKit',
'title' => null,
'disableTimer' => true
),
'request' => array(
'content' => array(
[maximum depth reached]
),
'elementName' => 'request_panel',
'plugin' => 'DebugKit',
'title' => null,
'disableTimer' => true
),
'sql_log' => array(
'content' => array(
[maximum depth reached]
),
'elementName' => 'sql_log_panel',
'plugin' => 'DebugKit',
'title' => null,
'disableTimer' => true
),
'timer' => array(
'content' => null,
'elementName' => 'timer_panel',
'plugin' => 'DebugKit',
'title' => null,
'disableTimer' => true
),
'log' => array(
'content' => object(DebugKitLog) {},
'elementName' => 'log_panel',
'plugin' => 'DebugKit',
'title' => null,
'disableTimer' => true
),
'variables' => array(
'content' => array(
[maximum depth reached]
),
'elementName' => 'variables_panel',
'plugin' => 'DebugKit',
'title' => null,
'disableTimer' => true
),
'environment' => array(
'content' => array(
[maximum depth reached]
),
'elementName' => 'environment_panel',
'plugin' => 'DebugKit',
'title' => null,
'disableTimer' => true
),
'include' => array(
'content' => array(
[maximum depth reached]
),
'elementName' => 'include_panel',
'plugin' => 'DebugKit',
'title' => null,
'disableTimer' => true
)
),
'debugToolbarJavascript' => array(
'libs' => 'DebugKit./js/js_debug_toolbar'
),
'debugToolbarCss' => array(
(int) 0 => 'DebugKit./css/debug_toolbar.css'
),
'salesreps' => array(
(int) 53 => 'Gordon Terwilliger'
),
'tz_list' => array(
'America/New_York' => 'Eastern',
'America/Chicago' => 'Central',
'America/Denver' => 'Mountain',
'America/Los_Angeles' => 'Pacific'
),
'uid' => false,
'role_id' => false,
'is_vendor' => false,
'is_apex' => false,
'county_list' => null,
'state_list' => null,
'owner_uuid' => '5c65ee46-360c-425c-8c35-3567608e448c',
'owner' => array(
'Client' => array(
'id' => '2',
'name' => 'Salt Creek Media, Inc.',
'address' => '3050 Beacon Blvd',
'address2' => '',
'city' => 'West Sacramento',
'state' => 'California',
'abbrev' => 'SCM',
'stateid' => '5c59fe8160ac85fb78da1db8',
'countyid' => null,
'zip' => '95691',
'phone' => '9162453070',
'fax' => '9162453070',
'url' => 'https://saltcreekmedia.com',
'logo' => 'green-day-logo-election-ballot-voting-ballot-box-polling-place-electoral-symbol-general-election-png-clip-art.png',
'client_options' => null,
'vendor_options' => null,
'active' => true,
'is_apex' => true,
'is_vendor' => false,
'company_email' => 'info@saltcreekmedia.com',
'color' => '{"page_background":"#ffffff","page_text":"#333333","header_background":"#bbd2d7","header_text":"#333333","footer_background":"#53859f","footer_text":"#ffffff","table_header_background":"#e9e9e9","table_header_text":"#333333","table_body":"#fdfdfd","table_body_alternate":"#f0f0f0","button_default":"#ffffff","button_default_text":"#333333","button_primary":"#cecece","button_primary_text":"#333333","button_info":"#a9a9a9","button_info_text":"#333333","button_warning":"#000000","button_warning_text":"#ffffff"}',
'used_storage' => null,
'max_storage' => '107374182400',
'notes' => '',
'ballots' => null,
'created' => '2019-02-14 14:40:06',
'modified' => '2020-02-21 09:57:23'
)
),
'content_for_layout' => '<div class="actions">
<h3></h3>
<li> </li>
<li> </li>
<li></li>
<li> </li>
<li> </li>
</div>
<br>
<h6>Use the below form to add a County you wish to register. Any email addresses you enter are sent a registration invite link.</h6>
<p>Invite only ensures security. You may invite up to 10 users per County.</p>
<br>
<div class="clients form">
<form action="/clients/add" id="ClientAddForm" method="post" accept-charset="utf-8"><div style="display:none;"><input type="hidden" name="_method" value="POST"/></div> <fieldset>
<legend>Add County</legend>
<div class="adv-input" style="margin-bottom: 10px;" data-field="ClientAddress"><label for="ClientAddress"class="col-sm-2 control-label text-right" style="padding-top: 5px;">Address</label><div class="col-sm-10"><div class="input text required"><input name="data[Client][address]" class="form-control" placeholder="Please enter the client's address" required="required" maxlength="45" type="text" id="ClientAddress"/></div></div><div class="clearfix"></div></div> <div class="adv-input" style="margin-bottom: 10px;" data-field="ClientAddress2"><label for="ClientAddress2"class="col-sm-2 control-label text-right" style="padding-top: 5px;">Address 2</label><div class="col-sm-10"><div class="input text"><input name="data[Client][address2]" class="form-control" placeholder="Please enter a second address (if applicable)" maxlength="45" type="text" id="ClientAddress2"/></div></div><div class="clearfix"></div></div> <div class="adv-input" style="margin-bottom: 10px;" data-field="ClientCity"><label for="ClientCity"class="col-sm-2 control-label text-right" style="padding-top: 5px;">City</label><div class="col-sm-10"><div class="input text required"><input name="data[Client][city]" class="form-control" placeholder="Please enter a city" required="required" maxlength="45" type="text" id="ClientCity"/></div></div><div class="clearfix"></div></div> <div class="adv-input" style="margin-bottom: 10px;" data-field="ClientStateid"><label for="ClientStateid"class="col-sm-2 control-label text-right" style="padding-top: 5px;">State</label><div class="col-sm-10"><div class="input select"><select name="data[Client][stateid]" class="form-control" placeholder="" required="required" id="ClientStateid">
<option value="">-Select State-</option>
</select></div></div><div class="clearfix"></div></div> <div class="selectACounty">
<div class="adv-input" style="margin-bottom: 10px;" data-field="ClientCountyid"><label for="ClientCountyid"class="col-sm-2 control-label text-right" style="padding-top: 5px;">County</label><div class="col-sm-10"><div class="input select"><select name="data[Client][countyid]" class="form-control" placeholder="" required="required" id="ClientCountyid">
<option value="">-Select County-</option>
</select></div></div><div class="clearfix"></div></div> </div>
<div class="adv-input" style="margin-bottom: 10px;" data-field="ClientZip"><label for="ClientZip"class="col-sm-2 control-label text-right" style="padding-top: 5px;">Zip Code</label><div class="col-sm-10"><div class="input text required"><input name="data[Client][zip]" class="form-control" placeholder="Please enter a zip code" required="required" maxlength="45" type="text" id="ClientZip"/></div></div><div class="clearfix"></div></div> <div class="adv-input" style="margin-bottom: 10px;" data-field="ClientPhone"><label for="ClientPhone"class="col-sm-2 control-label text-right" style="padding-top: 5px;">Phone</label><div class="col-sm-10"><div class="input text required"><input name="data[Client][phone]" class="form-control phone-mask" placeholder="Please enter the client's company phone number" required="required" maxlength="15" type="text" id="ClientPhone"/></div></div><div class="clearfix"></div></div> <div class="adv-input" style="margin-bottom: 10px;" data-field="ClientSalesrep"><label for="ClientSalesrep"class="col-sm-2 control-label text-right" style="padding-top: 5px;">Production Assistant <span class="fa fa-question-circle whatIsAProductionAssistant"></span></label><div class="col-sm-10"><div class="input select"><select name="data[Client][salesrep]" class="form-control" placeholder="" required="required" id="ClientSalesrep">
<option value="">- Select Production Assistant -</option>
<option value="53">Gordon Terwilliger</option>
</select></div></div><div class="clearfix"></div></div> <br>
<legend>Enter New User(s) Email(s) <span class="emailExpl fa fa-question-circle"></span></legend>
<div class="clientInputFieldsWrap" id="clientAddUserGroup">
<div class="adv-input" style="margin-bottom: 10px;" data-field="ClientEmail"><label for="ClientEmail"class="col-sm-2 control-label text-right" style="padding-top: 5px;">Email Address</label><div class="col-sm-10"><div class="input text required"><input name="data[Client][email][]" class="form-control" placeholder="Please enter the user's email address" required="required" type="text" id="ClientEmail"/></div></div><div class="clearfix"></div></div> </div>
<div class="actions col-sm-10 col-sm-offset-2">
<button type="button" class="addUserToClientGroup btn btn-primary btn-xs">Add More<span class="fa fa-plus"></span></button>
<div class="submit"><input class="btn btn-success" type="submit" value="Submit"/></div> </div>
</fieldset>
</form></div>
<script>
$(document).ready(function(){
$("#ClientStateid").on('change',function(o){
var st_val = $(this).val();
var url = "https://ballotboss.redstonemail.com/counties/getCountiesByState";
$.ajax({
'type' : 'POST',
'url' : url,
'data' : {
'st_val':st_val
}
}).done(function(result){
var r = JSON.parse(result);
var view = [];
$.each(r, function(i,e){
var ii = '<option value="'+i+'">'+e+'</option>';
view.push(ii);
});
$('#ClientCountyid').html(view);
$('.selectACounty').show();
}).fail(function(result){
}).always(function(result){
});
});
var max_client_additions = 10; //maximum input boxes allowed
var wrapper = $(".clientInputFieldsWrap"); //Fields wrapper
var add_users_to_client = $(".addUserToClientGroup"); //Add button ID
var x = 1; //initial text box count
$(add_users_to_client).click(function(e){ //on add input button click
e.preventDefault();
if(x < max_client_additions){ //max input box allowed
x++; //text box increment
$(wrapper).append('<div><div class="adv-input" style="margin-bottom: 10px;" data-field="ClientEmail"><label for="ClientEmail"class="col-sm-2 control-label text-right" style="padding-top: 5px;">Email Address</label><div class="col-sm-10"><div class="input text"><input name="data[email][]" class="form-control" placeholder="Please enter a valid email address" required="required" type="text" id="email"/></div></div><div class="clearfix"></div></div></div>');
}else{
alert('You may only invite up to 10 users to join this account');
}
});
$(wrapper).on("click",".remove_field", function(e){ //user click on remove text
e.preventDefault(); $(this).parent('div').remove(); x--;
});
/* <a href="#" class="remove_field"><span class="fa fa-times"></span></a> */
$('.whatIsAProductionAssistant').on('click',function(){
alert('A Production Assistant is the manufacturer\'s employee who will be assisting you throughout the life of your orders.');
});
$('.emailExpl').on('click',function(){
alert('Below, please enter the email addresses of the users you would like to invite to join this account.');
});
});
</script>
',
'scripts_for_layout' => '',
'title_for_layout' => 'Clients'
)
$debugToolbarPanels = array(
'history' => array(
'content' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
)
),
'elementName' => 'history_panel',
'plugin' => 'DebugKit',
'title' => null,
'disableTimer' => true
),
'session' => array(
'content' => null,
'elementName' => 'session_panel',
'plugin' => 'DebugKit',
'title' => null,
'disableTimer' => true
),
'request' => array(
'content' => array(
'params' => array(
[maximum depth reached]
),
'url' => 'clients/add',
'query' => array([maximum depth reached]),
'data' => array([maximum depth reached]),
'get' => array([maximum depth reached]),
'currentRoute' => object(CakeRoute) {}
),
'elementName' => 'request_panel',
'plugin' => 'DebugKit',
'title' => null,
'disableTimer' => true
),
'sql_log' => array(
'content' => array(
'connections' => array(
[maximum depth reached]
),
'threshold' => (int) 20
),
'elementName' => 'sql_log_panel',
'plugin' => 'DebugKit',
'title' => null,
'disableTimer' => true
),
'timer' => array(
'content' => null,
'elementName' => 'timer_panel',
'plugin' => 'DebugKit',
'title' => null,
'disableTimer' => true
),
'log' => array(
'content' => object(DebugKitLog) {},
'elementName' => 'log_panel',
'plugin' => 'DebugKit',
'title' => null,
'disableTimer' => true
),
'variables' => array(
'content' => array(
'salesreps' => array(
[maximum depth reached]
),
'tz_list' => array(
[maximum depth reached]
),
'uid' => false,
'role_id' => false,
'is_vendor' => false,
'is_apex' => false,
'county_list' => null,
'state_list' => null,
'owner_uuid' => '5c65ee46-360c-425c-8c35-3567608e448c',
'owner' => array(
[maximum depth reached]
),
'$request->data' => array([maximum depth reached])
),
'elementName' => 'variables_panel',
'plugin' => 'DebugKit',
'title' => null,
'disableTimer' => true
),
'environment' => array(
'content' => array(
'php' => array(
[maximum depth reached]
),
'cake' => array(
[maximum depth reached]
),
'app' => array(
[maximum depth reached]
)
),
'elementName' => 'environment_panel',
'plugin' => 'DebugKit',
'title' => null,
'disableTimer' => true
),
'include' => array(
'content' => array(
'core' => array(
[maximum depth reached]
),
'app' => array(
[maximum depth reached]
),
'plugins' => array(
[maximum depth reached]
),
'paths' => array(
[maximum depth reached]
)
),
'elementName' => 'include_panel',
'plugin' => 'DebugKit',
'title' => null,
'disableTimer' => true
)
)
$debugToolbarJavascript = array(
'libs' => 'DebugKit./js/js_debug_toolbar'
)
$debugToolbarCss = array(
(int) 0 => 'DebugKit./css/debug_toolbar.css'
)
$salesreps = array(
(int) 53 => 'Gordon Terwilliger'
)
$tz_list = array(
'America/New_York' => 'Eastern',
'America/Chicago' => 'Central',
'America/Denver' => 'Mountain',
'America/Los_Angeles' => 'Pacific'
)
$uid = false
$role_id = false
$is_vendor = false
$is_apex = false
$county_list = null
$state_list = null
$owner_uuid = '5c65ee46-360c-425c-8c35-3567608e448c'
$owner = array(
'Client' => array(
'id' => '2',
'name' => 'Salt Creek Media, Inc.',
'address' => '3050 Beacon Blvd',
'address2' => '',
'city' => 'West Sacramento',
'state' => 'California',
'abbrev' => 'SCM',
'stateid' => '5c59fe8160ac85fb78da1db8',
'countyid' => null,
'zip' => '95691',
'phone' => '9162453070',
'fax' => '9162453070',
'url' => 'https://saltcreekmedia.com',
'logo' => 'green-day-logo-election-ballot-voting-ballot-box-polling-place-electoral-symbol-general-election-png-clip-art.png',
'client_options' => null,
'vendor_options' => null,
'active' => true,
'is_apex' => true,
'is_vendor' => false,
'company_email' => 'info@saltcreekmedia.com',
'color' => '{"page_background":"#ffffff","page_text":"#333333","header_background":"#bbd2d7","header_text":"#333333","footer_background":"#53859f","footer_text":"#ffffff","table_header_background":"#e9e9e9","table_header_text":"#333333","table_body":"#fdfdfd","table_body_alternate":"#f0f0f0","button_default":"#ffffff","button_default_text":"#333333","button_primary":"#cecece","button_primary_text":"#333333","button_info":"#a9a9a9","button_info_text":"#333333","button_warning":"#000000","button_warning_text":"#ffffff"}',
'used_storage' => null,
'max_storage' => '107374182400',
'notes' => '',
'ballots' => null,
'created' => '2019-02-14 14:40:06',
'modified' => '2020-02-21 09:57:23'
)
)
$content_for_layout = '<div class="actions">
<h3></h3>
<li> </li>
<li> </li>
<li></li>
<li> </li>
<li> </li>
</div>
<br>
<h6>Use the below form to add a County you wish to register. Any email addresses you enter are sent a registration invite link.</h6>
<p>Invite only ensures security. You may invite up to 10 users per County.</p>
<br>
<div class="clients form">
<form action="/clients/add" id="ClientAddForm" method="post" accept-charset="utf-8"><div style="display:none;"><input type="hidden" name="_method" value="POST"/></div> <fieldset>
<legend>Add County</legend>
<div class="adv-input" style="margin-bottom: 10px;" data-field="ClientAddress"><label for="ClientAddress"class="col-sm-2 control-label text-right" style="padding-top: 5px;">Address</label><div class="col-sm-10"><div class="input text required"><input name="data[Client][address]" class="form-control" placeholder="Please enter the client's address" required="required" maxlength="45" type="text" id="ClientAddress"/></div></div><div class="clearfix"></div></div> <div class="adv-input" style="margin-bottom: 10px;" data-field="ClientAddress2"><label for="ClientAddress2"class="col-sm-2 control-label text-right" style="padding-top: 5px;">Address 2</label><div class="col-sm-10"><div class="input text"><input name="data[Client][address2]" class="form-control" placeholder="Please enter a second address (if applicable)" maxlength="45" type="text" id="ClientAddress2"/></div></div><div class="clearfix"></div></div> <div class="adv-input" style="margin-bottom: 10px;" data-field="ClientCity"><label for="ClientCity"class="col-sm-2 control-label text-right" style="padding-top: 5px;">City</label><div class="col-sm-10"><div class="input text required"><input name="data[Client][city]" class="form-control" placeholder="Please enter a city" required="required" maxlength="45" type="text" id="ClientCity"/></div></div><div class="clearfix"></div></div> <div class="adv-input" style="margin-bottom: 10px;" data-field="ClientStateid"><label for="ClientStateid"class="col-sm-2 control-label text-right" style="padding-top: 5px;">State</label><div class="col-sm-10"><div class="input select"><select name="data[Client][stateid]" class="form-control" placeholder="" required="required" id="ClientStateid">
<option value="">-Select State-</option>
</select></div></div><div class="clearfix"></div></div> <div class="selectACounty">
<div class="adv-input" style="margin-bottom: 10px;" data-field="ClientCountyid"><label for="ClientCountyid"class="col-sm-2 control-label text-right" style="padding-top: 5px;">County</label><div class="col-sm-10"><div class="input select"><select name="data[Client][countyid]" class="form-control" placeholder="" required="required" id="ClientCountyid">
<option value="">-Select County-</option>
</select></div></div><div class="clearfix"></div></div> </div>
<div class="adv-input" style="margin-bottom: 10px;" data-field="ClientZip"><label for="ClientZip"class="col-sm-2 control-label text-right" style="padding-top: 5px;">Zip Code</label><div class="col-sm-10"><div class="input text required"><input name="data[Client][zip]" class="form-control" placeholder="Please enter a zip code" required="required" maxlength="45" type="text" id="ClientZip"/></div></div><div class="clearfix"></div></div> <div class="adv-input" style="margin-bottom: 10px;" data-field="ClientPhone"><label for="ClientPhone"class="col-sm-2 control-label text-right" style="padding-top: 5px;">Phone</label><div class="col-sm-10"><div class="input text required"><input name="data[Client][phone]" class="form-control phone-mask" placeholder="Please enter the client's company phone number" required="required" maxlength="15" type="text" id="ClientPhone"/></div></div><div class="clearfix"></div></div> <div class="adv-input" style="margin-bottom: 10px;" data-field="ClientSalesrep"><label for="ClientSalesrep"class="col-sm-2 control-label text-right" style="padding-top: 5px;">Production Assistant <span class="fa fa-question-circle whatIsAProductionAssistant"></span></label><div class="col-sm-10"><div class="input select"><select name="data[Client][salesrep]" class="form-control" placeholder="" required="required" id="ClientSalesrep">
<option value="">- Select Production Assistant -</option>
<option value="53">Gordon Terwilliger</option>
</select></div></div><div class="clearfix"></div></div> <br>
<legend>Enter New User(s) Email(s) <span class="emailExpl fa fa-question-circle"></span></legend>
<div class="clientInputFieldsWrap" id="clientAddUserGroup">
<div class="adv-input" style="margin-bottom: 10px;" data-field="ClientEmail"><label for="ClientEmail"class="col-sm-2 control-label text-right" style="padding-top: 5px;">Email Address</label><div class="col-sm-10"><div class="input text required"><input name="data[Client][email][]" class="form-control" placeholder="Please enter the user's email address" required="required" type="text" id="ClientEmail"/></div></div><div class="clearfix"></div></div> </div>
<div class="actions col-sm-10 col-sm-offset-2">
<button type="button" class="addUserToClientGroup btn btn-primary btn-xs">Add More<span class="fa fa-plus"></span></button>
<div class="submit"><input class="btn btn-success" type="submit" value="Submit"/></div> </div>
</fieldset>
</form></div>
<script>
$(document).ready(function(){
$("#ClientStateid").on('change',function(o){
var st_val = $(this).val();
var url = "https://ballotboss.redstonemail.com/counties/getCountiesByState";
$.ajax({
'type' : 'POST',
'url' : url,
'data' : {
'st_val':st_val
}
}).done(function(result){
var r = JSON.parse(result);
var view = [];
$.each(r, function(i,e){
var ii = '<option value="'+i+'">'+e+'</option>';
view.push(ii);
});
$('#ClientCountyid').html(view);
$('.selectACounty').show();
}).fail(function(result){
}).always(function(result){
});
});
var max_client_additions = 10; //maximum input boxes allowed
var wrapper = $(".clientInputFieldsWrap"); //Fields wrapper
var add_users_to_client = $(".addUserToClientGroup"); //Add button ID
var x = 1; //initial text box count
$(add_users_to_client).click(function(e){ //on add input button click
e.preventDefault();
if(x < max_client_additions){ //max input box allowed
x++; //text box increment
$(wrapper).append('<div><div class="adv-input" style="margin-bottom: 10px;" data-field="ClientEmail"><label for="ClientEmail"class="col-sm-2 control-label text-right" style="padding-top: 5px;">Email Address</label><div class="col-sm-10"><div class="input text"><input name="data[email][]" class="form-control" placeholder="Please enter a valid email address" required="required" type="text" id="email"/></div></div><div class="clearfix"></div></div></div>');
}else{
alert('You may only invite up to 10 users to join this account');
}
});
$(wrapper).on("click",".remove_field", function(e){ //user click on remove text
e.preventDefault(); $(this).parent('div').remove(); x--;
});
/* <a href="#" class="remove_field"><span class="fa fa-times"></span></a> */
$('.whatIsAProductionAssistant').on('click',function(){
alert('A Production Assistant is the manufacturer\'s employee who will be assisting you throughout the life of your orders.');
});
$('.emailExpl').on('click',function(){
alert('Below, please enter the email addresses of the users you would like to invite to join this account.');
});
});
</script>
'
$scripts_for_layout = ''
$title_for_layout = 'Clients'
$owner_logo = 'green-day-logo-election-ballot-voting-ballot-box-polling-place-electoral-symbol-general-election-png-clip-art.png'
$model = 'clients'
$tz_id = (int) 1
$tz = (int) 1include - APP/View/Elements/navbar.ctp, line 105
View::_evaluate() - CORE/Cake/View/View.php, line 971
View::_render() - CORE/Cake/View/View.php, line 933
View::_renderElement() - CORE/Cake/View/View.php, line 1224
View::element() - CORE/Cake/View/View.php, line 418
include - APP/View/Layouts/default.ctp, line 59
View::_evaluate() - CORE/Cake/View/View.php, line 971
View::_render() - CORE/Cake/View/View.php, line 933
View::renderLayout() - CORE/Cake/View/View.php, line 546
View::render() - CORE/Cake/View/View.php, line 481
Controller::render() - CORE/Cake/Controller/Controller.php, line 963
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 118