在我的wp项目中,我使用Assently进行电子签名实现.虽然我有一个帐户并创建了一个由用户填写的pdf表单文件,但我无法进行一些操作.我发现文件不清楚.此外,我不清楚需要做什么,以便用户将被显示表单来处理交易.
因此,任何有助于继续前进的帮助/建议都表示赞赏.
我基于同意laravel尝试了以下.但它要求我登录.什么是错误?码:
define('ASSENTLY_DEBUG', true);
define('ASSENTLY_KEY', 'key');
define('ASSENTLY_SECRET', 'secret-generated');
include_once('assently/Assently.php');
$assently = new Assently();
$assently->authenticate(ASSENTLY_KEY, ASSENTLY_SECRET);
$url = 'https://test.assently.com/api/v2/createcasefromtemplate';
$default = array(
'Id' => '5a0e0869-'.rand(1111, 9999).'-4b79-'.rand(1111, 9999).'-466ea5cca5ce'
);
$data = array(
'auth' => $assently->auth(),
'templateId' => '0e004e2b-b192-4ce2-8f47-d7a4576d7df6',
'newCaseId' => '5a0e0869-'.rand(1111, 9999).'-4b79-'.rand(1111, 9999).'-466ea5cca5ce',
'agentUsername' => ''
);
$data = array(
'json' => $data
);
$options = array(
'http' => array(
'header' => "Content-type: application/json; charset=utf-8\r\n",
'method' => 'POST',
'content' => http_build_query($data)
)
);
$context = stream_context_create($options);
$result …Run Code Online (Sandbox Code Playgroud) 我试图添加两个十进制值,但返回的总和是纯整数.怎么了?我找不到它.欢迎任何帮助.
jQuery(".delivery-method #ship_select").change(function(){
var cost = jQuery(this).val();
jQuery("#delivery_cost").val(cost); //returns 20.00
var tot = parseInt(cost) + parseInt(total); //total returns 71.96
});
Run Code Online (Sandbox Code Playgroud)
使用代码我只得到91而不是91.96
我有自己的工作经验,可以通过输入动态添加组织名称,部门名称,职位和持续时间.
<tr>
<td><span class="serial_no">1</span></td>
<td><input type="text" name="organization[]" size="50"/></td>
<td><input type="text" name="department[]" size="50"></td>
<td><input type="text" name="positions[]" size="40"></td>
<td><input type="text" name="duration[]"></td>
</tr>
Run Code Online (Sandbox Code Playgroud)
在CI中验证时,我执行了以下操作:
$organization = $this->input->post('organization');
$department = $this->input->post('department');
$positions = $this->input->post('positions');
$duration = $this->input->post('duration');
//printr($organization);
for($i = 0; $i < count($organization); $i++)
{
$org = $organization[$i];
$dept = $department[$i];
$pos = $positions[$i];
$dura = $duration[$i];
$this->form_validation->set_rules($org, "Organization", "trim|xss_clean|max_length[1]");
$this->form_validation->set_rules($dept, "Department", "trim|xss_clean|max_length[50]");
$this->form_validation->set_rules($pos, "Position", "trim|xss_clean|max_length[40]");
$this->form_validation->set_rules($dura, "Duration", "trim|xss_clean|integer");
}
Run Code Online (Sandbox Code Playgroud)
并显示错误:
<?php
echo form_error("organization[]");
echo form_error("department[]");
echo form_error("positions[]");
echo form_error("duration[]");
?>
Run Code Online (Sandbox Code Playgroud)
现在的问题是它不会将持续时间验证为整数.即使我放了一些随机的字母字符,它也不会显示错误.
当我验证如下: …
有谁知道如何集成Sharepoint和Php.我正在尝试开发可以连接到Sharepoint的php应用程序.特别是因为基本上我是网站开发人员,我希望我的所有网站都与Sharepoint连接.所以,我只想创建Php应用程序,使其适用于所有网站.我不知道是否可能,但我想尝试但不知道如何继续.
任何想法/建议都是受欢迎的.
提前致谢.
我在引导模式中使用 ckeditor。ckeditor 中的数据应在 ajax 调用后动态加载。我无法在 ckeditor 中加载数据。代码 :
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="exampleModalLabel">Thank you Message</h4>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<label for="recipient-name" class="control-label">Recipient:</label>
<input type="text" class="form-control" id="recipient-name">
</div>
<div class="form-group">
<label for="recipient-name" class="control-label">Subject:</label>
<input type="text" class="form-control" id="subject">
</div>
<div class="form-group">
<label for="message-text" class="control-label">Message:</label>
<?php $ckeditor->editor('message', '', array('id'=>'editor1')); ?>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn …Run Code Online (Sandbox Code Playgroud) 我在登录页面中使用记住选项.我认为我做得对,但在退出时我无法取消设置cookie变量.我正在使用CI但是我使用的是cookie我使用原生cookie.我做错了什么我的代码:在登录控制器中:
function index(){
if(isset($_COOKIE['remember_me'])){
redirect('index');
}elseif($this->input->post()){
$username = $this->input->post('username');
$password = $this->input->post('password');
$remember = $this->input->post('remember');
if($remember){
$time = time()+60*60*24*365;
setcookie('remember_me', $username , $time);
}
$this->session->set_userdata('user_name', $user_name);
$this->session->set_userdata('full_name', $full_name);
$this->session->set_userdata('server', $server->exchange_server);
redirect('index');
}else{
$this->load->view('login');
}
}
function logout(){
$this->session->unset_userdata('user_name');
$this->session->unset_userdata('full_name');
$this->session->unset_userdata('server');
$data['login'] = 'Logout Successfully.';
$data['class'] = 'success';
$this->session->set_flashdata($data);
/* To unset cookie i tried following different approach but to no avail*/
setcookie('remember_me');
setcookie('remember_me', '', $time()-60*60*24*365);
setcookie('remember_me', false);
unset($_COOKIE['remember_me']);
redirect('login');
}
Run Code Online (Sandbox Code Playgroud)
但无济于事.我只是不能取消设置cookie,当用户检查过时,请记住我选项trys注销它没有发生.欢迎任何帮助/建议.谢谢
我不知道是什么问题,但我使用jquery插件进行cookie删除{ https://github.com/carhartl/jquery-cookie }.我包括jquery.cookie.js然后在注销时单击我删除了cookie设置为$ .removeCookie('remember_me')
我DATE_FORMAT在数据库中使用mysql 作为特定的日期时间.Mysql查询是:
$this->db->select('remarks_date, DATE('remarks_date') AS rem_dateonly, DATE_FORMAT('remarks_date', '%y-%m-%d %h:%i') AS day_hour_mins, DATE_FORMAT('remarks_date', '%y-%m-%d %h') AS day_hour, tbl_complain_detail.complain_summary, tbl_complain_detail.id, tbl_complain_detail.complain_no, tbl_complain_detail.created_by, escalation_status, tbl_admin_user.first_name, tbl_admin_user.middle_name, tbl_admin_user.last_name');
$this->db->where('tbl_complain_remarks.status', 'Time Extension');
$this->db->where('tbl_complain_detail.status !=', 'Completed');
$this->db->where('tbl_complain_detail.time_extension_status', '1');
$this->db->join('tbl_complain_remarks', 'tbl_complain_remarks.complain_id = tbl_complain_detail.id');
$this->db->join('tbl_admin_user', 'tbl_admin_user.id = tbl_complain_detail.user_id');
$result2 = $this->db->get('tbl_complain_detail')->result();
Run Code Online (Sandbox Code Playgroud)
我在这里得到错误
PHP Parse error: syntax error, unexpected T_STRING in select line
而且它没有采取%.为什么?
难道我做错了什么?任何帮助/建议将不胜感激.
下面我有一年的下拉菜单.
<select name="from_year" class="col-md-4 form-control" id="from_year">
<option value="0">Select Year</option>
<option value="2010">2010</option>
<option value="2011">2011</option>
<option value="2012">2012</option>
<option value="2013">2013</option>
<option value="2014">2014</option>
<option selected="selected" value="2015">2015</option>
<option value="2016">2016</option>
<option value="2017">2017</option>
<option value="2018">2018</option>
<option value="2019">2019</option>
<option value="2020">2020</option>
</select>
Run Code Online (Sandbox Code Playgroud)
现在从ajax电话我得到一年说2016年.现在我想禁用低于2016年的所有选项.我试过以下:
$('select#from_year option:lt('+payment_date[1]+')').prop("disabled", true);
Run Code Online (Sandbox Code Playgroud)
...在哪里payment_date[1] = 2016,但无济于事.
难道我做错了什么.欢迎任何帮助/建议.
我正在尝试创建一个带有方向的谷歌地图,并使用折线.但我得到上面的控制台错误,我只是无法得到这里的问题.代码:
<script src="https://maps.googleapis.com/maps/api/js?sensor=false" type="text/javascript"></script>
var marker;
var infowindow;
var labels = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
var labelIndex = 0;
var markers = {};
var currentId = 0;
var uniqueId = function() {
return ++currentId;
}
var edit = 0;
var direction = '';
var linecordinates = [];
var map;
var sortorder = 0;
var latest_marker;
var latest_latlng;
var lineSymbol;
var flightPath;
var line = [];
var saved_locations = $("#hidden_lat_long").val();
// saved_locations = [{"label":1,"lat":"27.7233","long":"85.2783"},{"label":2,"lat":"27.7625","long":"85.3411"},{"label":3,"lat":"27.7056","long":"85.4166"},{"label":4,"lat":"27.6704","long":"85.3209"}]
function initialize() {
lineSymbol = {
path: google.maps.SymbolPath.FORWARD_CLOSED_ARROW
};
/* …Run Code Online (Sandbox Code Playgroud) php ×4
javascript ×3
jquery ×3
codeigniter ×2
api ×1
ckeditor ×1
cookies ×1
decimal ×1
google-maps ×1
mysql ×1
payment ×1
sharepoint ×1
soap ×1
validation ×1
wordpress ×1