我有数据库内容,有不同类型的数据,如Youtube视频,Vimeo视频,文本,Imgur图片等.所有这些都有不同的高度和宽度.我在搜索互联网时发现的只是将大小改为一个参数.它必须与弹出窗口中的内容相同.
这是我的HTML代码.我还使用Ajax来调用内容.
<div id="modal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="ModalLabel"></h3>
</div>
<div class="modal-body">
</div>
</div>
Run Code Online (Sandbox Code Playgroud) 我使用phpstorm和它的终端设施.
在终端部分我输入,F:\Projects\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico -所以它使用Cygwin作为终端.但它在主文件夹中打开它.是否可以在不同的文件夹中打开它?通过键入命令或通过执行其他操作.
因为我在这个文件夹中有一个名为F:\ Projects\Local的文件夹,我有流浪汉,我想打开phpstorm,在php风暴中打开终端,然后输入vagran.我不想再打开cgywin.
谢谢
谢谢阅读.
我正在使用magmi来导入超过30,000种带图像的产品.
问题在于图像是否已导入,但所有图像都被排除在外.
有没有我可以使用的SQL查询并包含所有图像?
我使用了这个查询但只影响了一行
update `catalog_product_entity_media_gallery_value` set disabled=1 where `value_id` in (select `value_id` from `catalog_product_entity_media_gallery` where value in (select value from `catalog_product_entity_varchar` where `attribute_id`=(select `attribute_id` from `eav_attribute` where attribute_code='image' and `entity_type_id`=4)));
Run Code Online (Sandbox Code Playgroud)
你能帮我么?谢谢.
magento 1.8 CE
谢谢阅读。
我使用的DataTable的插件为我的网站从数据库中显示一些数据。我还有一个小的 jquery ajax 插件,我写了它来更新数据库。问题是数据表在每页/集上显示 10。在前 10 个结果上,如果您使用开/关开关(复选框),它会触发我编写的 ajax jquery 函数,但如果您转到第二页/设置或显示超过 10 个,开/关开关(复选框)不会触发查询。控制台中没有任何反应。
这是复选框触发的jquery代码
<script>
jQuery(document).ready(function($){
$(".community-check").change(function(event) {
var Tag = $(this).val();
$.ajax({
url: "/ajax.php?Page=subscribe",
type: "POST",
dataType: "json",
data: {Tag:Tag},
success: function(data, textStatus){
if(data.status == 'true'){
return true;
}else{
alert( data.message );
return false;
}
},
error:function(){
alert('error');
}
});
});
});
</script>
Run Code Online (Sandbox Code Playgroud)
数据表的jquery
<script>
jQuery(function($) {
var colorbox_params = {
reposition:true,
scalePhotos:true,
scrolling:false,
previous:'<i class="icon-arrow-left"></i>',
next:'<i class="icon-arrow-right"></i>',
close:'×',
current:'{current} of {total}',
maxWidth:'100%',
maxHeight:'100%',
onOpen:function(){
document.body.style.overflow …Run Code Online (Sandbox Code Playgroud) 我有一个博客.我写了简单的投票系统.我的想法可能是错的.我有一张这样的桌子
id title文章TotalVotes VoteSum
当有人投票的文章TotelVotes得到一分如果有人投票的文章VoteSum cloumn获得1分
当我显示文章的投票时,我这样做
<?php
$Vote = $ROW['TotelVotes']-$ROW['VoteSum'];
?>
Run Code Online (Sandbox Code Playgroud)
它工作得很好,但在我的头版我想显示热门文章所以我做了这个mysql查询
SELECT TotalVotes-VoteSum AS diff FROM `articles` ORDER BY `diff` DESC
Run Code Online (Sandbox Code Playgroud)
当我这样做时,我收到这样的数字18446744073709551615这种情况发生在例如当TotalVotes小于VoteSum时
数据类型是未签名的
我做错了什么?请你帮助我好吗?谢谢.
我正在使用twitter bootsrap练习并制作了一个示例网站.我使用模态视图在用户投票时显示警告.但是,当您第一次投票时,它不会显示警告.它显示第二次.如果你去我的测试网站并点击向上箭头,你将看不到任何内容.但当你再次点击时,你会看到模态消息.(这就是说你必须用我的语言记录投票)我无法弄清楚它为什么会发生.谢谢你的帮助.
这是我的jquery.
<script>
jQuery(document).ready(function($){
$('.upvote').click( function(event) {
event.preventDefault();
var voteID = $(this).attr("id");
$.ajax({
url: "/ajax.php?Page=votetitle",
type: "post",
dataType: "json",
data: {id : voteID, vote: '1'},
success: function(data){
if(data.success == 'true'){
$('#voteresponse'+voteID).html(data.message);
}else{
$(".upvote").attr("data-toggle", "modal");
$(".upvote").attr("data-target", "#modal");
$('#modal').modal('show');
$('#modal').on('show', function () {
$('.ModalLabel',this).html('Oy verirken hata olu?tu!').css({color: 'red'});;
$('.modal-body',this).html(data.message);
});
}
},
error:function(){
$('#voteresponse').popover({
title: 'Hata!',
content: 'Server hatasi'
});
}
});
});
$('.downvote').click( function(event) {
event.preventDefault();
var voteID = $(this).attr("id");
$.ajax({
url: "/ajax.php?Page=votetitle",
type: "post",
dataType: "json",
data: …Run Code Online (Sandbox Code Playgroud)