主列表页面有编辑按钮.这将打开已编辑行的详细信息.
方式1:现在,如果我设置"ctrl.parent.q_details.client_location"它将与父列表控制器绑定,它作为双向绑定工作并自动更改值,如编辑框中的更改,这不是必需的.
这里我只想显示并允许在inputbox中编辑值.不希望在父控制器中更改.
►以下是父控制器中调用mdDialog的代码
$mdDialog.show({
locals:{parent: $scope},
clickOutsideToClose: true,
controllerAs: 'ctrl',
templateUrl: 'quotation/edit/',//+edit_id,
controller: function () { this.parent = $scope; },
});
Run Code Online (Sandbox Code Playgroud)
►以下是弹出式mdDialog的代码.
<md-dialog aria-label="">
<div ng-app="inputBasicDemo" ng-controller="deliverController" layout="column">
<form name="" class="internal_note_cont">
<md-content class="md-padding">
<md-input-container class="md-input-has-value" flex>
<label>Client Name</label>
<input ng-model="qe.client_name" required >
</md-input-container>
<md-input-container flex>
<label>Client Location</label>
<input required ng-model="ctrl.parent.q_details.client_location">
</md-input-container>
</md-content>
</form>
<div>
</div>
</div>
<input type="" required ng-model="ctrl.parent.q_details.recid">
</md-dialog>
Run Code Online (Sandbox Code Playgroud)
Way2:第二种方法是直接从DB发送值而不绑定到Dialog控制器的ng-model(deliverController).
]).controller("deliverController", ["$scope", "$filter","$http","$route","$window","$mdDialog",
function ($scope, $filter,$http,$route,$window,$mdDialog) {
$scope.qe.client_name = '12345'; // just to test.
} …Run Code Online (Sandbox Code Playgroud) javascript modal-dialog angularjs material-design angular-material
在我的服务器上,通过dompdf生成的pdf没有显示图像.因为它们是远程网址图像.(本地图像工作正常)然后我才知道它需要一些设置来渲染远程图像.
allow_url_fopen = true => i can not as server control is not in my hand.(and no one will suggest to do this due to security reasons)
read/write access to the DOMPDF_TEMP_DIR (already have this)
DOMPDF_ENABLE_REMOTE = true (already have this)
Run Code Online (Sandbox Code Playgroud)
所以为了确定allow_url_fopen的问题,我在localhost中设置false,现在提供与服务器相同的输出.
所以,现在问题是我想用allow_url_fopen = false显示PDF格式的远程图像
是否有人可以建议我如何以pdf格式显示图像.我一直得到的错误是......
Image not found
http://localhost/dompdf/image.php
Run Code Online (Sandbox Code Playgroud)
和
Image not found
http://localhost/dompdf/image.jpg
Run Code Online (Sandbox Code Playgroud) 当邮件有使用mailgun发送的附件时,我正面临问题.如果有人做过这件事,请回复.这是我的代码......
$mg_api = 'key-3ax6xnjp29jd6fds4gc373sgvjxteol0';
$mg_version = 'api.mailgun.net/v2/';
$mg_domain = "samples.mailgun.org";
$mg_from_email = "info@samples.com";
$mg_reply_to_email = "info@samples.org";
$mg_message_url = "https://".$mg_version.$mg_domain."/messages";
$ch = curl_init();
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt ($ch, CURLOPT_MAXREDIRS, 3);
curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, false);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_VERBOSE, 0);
curl_setopt ($ch, CURLOPT_HEADER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, 10);
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_USERPWD, 'api:' . $mg_api);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, true);
//curl_setopt($curl, CURLOPT_POSTFIELDS, $params);
curl_setopt($ch, CURLOPT_HEADER, false);
//curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_URL, $mg_message_url); …Run Code Online (Sandbox Code Playgroud) 这一定是一个非常noob的问题,但通过谷歌搜索,我得到了不同的答案.
我只想在单击任何图层时通过图层面板,所有图层之间必须有选择轮廓,选择哪个图层.
我在某种程度上使用过Adobe烟花,只需点击它就可以轻松看到所选的图层.
我已经做了很多时间.但是,我也被困在这里(在不同的服务器中)并且无法弄清楚问题是什么.
完成htaccess编辑
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /glt.me/CI/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /glt.me/CI/index.php/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>
Run Code Online (Sandbox Code Playgroud)
错误:
内部服务器错误
服务器遇到内部错误或配置错误,无法完成您的请求.
请联系服务器管理员cgiadmin@yourhostingaccount.com并告知他们错误发生的时间以及可能导致错误的任何操作.
服务器错误日志中可能提供了有关此错误的更多信息.
此外,尝试使用ErrorDocument处理请求时遇到500内部服务器错误错误.
测试这个案例:
http://glt.me/CI/test
http://glt.me/CI/index.php/test
Run Code Online (Sandbox Code Playgroud) <a href="javascript:void(0);" class="selectedpagination" onclick="changeuploader();">
Try flash Uploader
</a>
Run Code Online (Sandbox Code Playgroud)
如果我在锚标记的第一个参数中写入javascript:void(0);,它将打开链接controller/javascript:void(0)
另外,我如何给它类名和onclick事件?
我只是将我的orangehm从免费托管解决方案转移到付费解决方案.我更新了mysql凭据并设置了chmod权限.但是,当我访问起始页面时,我收到以下错误:
致命错误:require()[function.require]:无法打开所需的'/home/donut/public_html/symfony/apps/orangehrm/lib/utility/KeyHandler.php'(include_path ='.:/ usr/lib/php5' )在第188行的/homepages/1/d316893459/htdocs/bcsdhrm/symfony/lib/vendor/symfony/lib/autoload/sfAutoload.class.php
我是橙色的诺布,所以请帮助我!我不知道该怎么做.
谢谢
{"": "attachment-2","": "attachment-1"}
Run Code Online (Sandbox Code Playgroud)
我通过解析邮件得到这个 JSON 编码的字符串(或其他格式...让我知道),但我无法更改它。我怎样才能解码它?
php ×5
codeigniter ×2
adobe ×1
angularjs ×1
dompdf ×1
email ×1
filepath ×1
image ×1
javascript ×1
json ×1
layer ×1
mailgun ×1
mod-rewrite ×1
modal-dialog ×1
open-source ×1
photo ×1
photoshop ×1