Jump to content

Recommended Posts

Здравствуйте. Я записал файлы на хостинг сделал запрос таблице. как открыть магазин?

свой сайт/shop

вот по этой ссылке открывается сайт

Edited by deadpool
Link to comment
Share on other sites

спасибо большое)

Вот js

 

// SHOP
var shop = {
search:function(){
var title = $('#shopsearch').val();
$('#shop_se_load').fadeIn('fast');
 
if(title.length == 0){
                        $('#shop_se_load').fadeOut(100);
$('#searchbody').hide();
$('.friends_onefriend').show();
$('#tab3').show();
$('#nav').show();
}else{
$.post('/index.php?go=shop&act=search',{title: title},function(d){
 
$('.shop_oneshop').hide();
$('#tab3').hide();
                        $('#shop_se_load').fadeOut(100);
$('#searchbody').show();
$('#searchbody').html(d);
});
}
},
delet: function(id){
$('#del_text_'+id).remove();
$('#del_load_'+id).show();
$.post('/index.php?go=shop&act=delet', {id: id}, function(){
$('#bmsg_'+id).remove();
$('#del_load_'+id).remove();
updateNum('#all_msg_num');
myhtml.title_close(id);
});
},
ok: function(id){
$('#ok_text_'+id).remove();
$('#ok_load_'+id).show();
$.post('/index.php?go=shop&act=ok', {id: id}, function(){
$('#bmsg_'+id).remove();
$('#ok_load_'+id).remove();
myhtml.title_close(id);
});
},
save: function(id){
var title = $('#title').val();
var text = $('#text').val();
var price = $('#price').val();
var currency = $('#currency').val();
var category = $('#category').val();
var contacts = $('#contacts').val();
var email = $('#email').val();
var vk = $('#vk').val();
var skype = $('#skype').val();
if(title != 0){
if(text != 0){
if(price != 0){
  if(currency != 0){
if(category != 0){
if(contacts != 0){
 if(email != 0){
butloading('tov', 70, 'disabled');
$.post('/index.php?go=shop&act=save', {title: title, text: text, price: price, currency: currency, category: category, contacts: contacts, email: email, vk: vk, skype: skype}, function(){
butloading('tov', 70, 'enabled', 'Сохранить');
        Page.Go('/shop'+id);
});
} else
setErrorInputMsg('email');
} else
setErrorInputMsg('contacts');
        } else
setErrorInputMsg('category');
} else
setErrorInputMsg('currency');
} else
setErrorInputMsg('price');
} else
setErrorInputMsg('text');
} else
setErrorInputMsg('title');
}
}
var BoxLang = {
    start: function(mylang){
var content = '<center>'+
'<a style="background-image: url(/templates/Default/images/lang/1.gif);background-size: 34px 26px;" class="lang_box_row" onClick="boxlang.mylang(\'1\');">Русский</a>'+
'<a style="width:70px;display:block;padding-left:60px;height:42px;line-height:42px;background-repeat:no-repeat;background-position: 10px center;color:#426A87;font-weight:bold;background-image: url(/templates/Default/images/lang/2.gif);background-size: 34px 26px;" class="lang_box_row" onClick="boxlang.mylang(\'2\'); return false">Українська</a>'+
'<a style="background-image: url(/templates/Default/images/lang/3.gif);background-size: 34px 26px;" class="lang_box_row" onClick="boxlang.mylang(\'3\'); return false">English</a>'+
'<div onclick="boxlang.list_lang(); return false" class="lang_box_rows cursor_pointer">Other languages »</div><br><br>'+
'</center>';
Box.Show('boxlang', 250, lang_vibyaz, content, lang_box_canсel, lang_new_msg_send, 'boxlang.mylangs(\'1\'); return false', 200);
$('#msg').focus();
  },
    Next_list: function(mylang){
   Box.Close('boxlang');
var content = '<div style="width:110px;float:left;padding-top:10px;padding-left:40px;">'+
'<div style="height:17px"><img style="margin-bottom:1px;margin-right:10px;" src="/templates/Default/images/img/tok.png"><a class="cursor_pointer" onClick="boxlang.mylang(\'1\');">Русский</a></div>'+
'<div style="height:17px"><img style="margin-bottom:1px;margin-right:10px;" src="/templates/Default/images/img/tok.png"><a class="cursor_pointer" onClick="boxlang.mylang(\'2\');">Українська</a></div>'+
'<div style="height:17px"><img style="margin-bottom:1px;margin-right:10px;" src="/templates/Default/images/img/tok.png"><a class="cursor_pointer" onClick="boxlang.mylang(\'3\');">English</a></div>'+
'<div style="height:17px"><img style="margin-bottom:1px;margin-right:10px;" src="/templates/Default/images/img/tok.png"><a class="cursor_pointer" onClick="boxlang.mylang(\'4\');">Беларускі</a></div>'+
'<div style="height:17px"><img style="margin-bottom:1px;margin-right:10px;" src="/templates/Default/images/img/tok.png"><a class="cursor_pointer" onClick="boxlang.mylang(\'5\');">Azərbaycan</a></div>'+
'<div style="height:17px"><img style="margin-bottom:1px;margin-right:10px;" src="/templates/Default/images/img/tok.png"><a class="cursor_pointer" onClick="boxlang.mylang(\'6\');">Հայերեն</a></div>'+
'<div style="height:17px"><img style="margin-bottom:1px;margin-right:10px;" src="/templates/Default/images/img/tok.png"><a class="cursor_pointer" onClick="boxlang.mylang(\'7\');">ქართული</a></div>'+
'<div style="height:17px"><img style="margin-bottom:1px;margin-right:10px;" src="/templates/Default/images/img/tok.png"><a class="cursor_pointer" onClick="boxlang.mylang(\'8\');">deutsch</a></div>'+
'<div style="height:17px"><img style="margin-bottom:1px;margin-right:10px;" src="/templates/Default/images/img/tok.png"><a class="cursor_pointer" onClick="boxlang.mylang(\'9\');">italiano</a></div>'+
'<div style="height:17px"><img style="margin-bottom:1px;margin-right:10px;" src="/templates/Default/images/img/tok.png"><a class="cursor_pointer" onClick="boxlang.mylang(\'10\');">español</a></div>'+
'</div>'+
'<div style="width:120px;float:left;padding-top:3px;">'+
'</div>';
Box.Show('boxlang', 500, lang_vibyaz, content, lang_box_canсel, lang_new_msg_send, 'boxlang.mylangs(\'1\'); return false', 400);
$('#msg').focus();
  },
    mylang: function(mylang) {
var text_delet = $('#text_delet').val();
$.post('/index.php?go=settings&act=mylang', {mylang:mylang}, function(){
Box.Close('boxlang');
location.reload();
$('body, html').animate({scrollTop: 0}, 250);
});
}
}
Link to comment
Share on other sites

  • 2 weeks later...

 

Вот js

 

// SHOP
var shop = {
search:function(){
var title = $('#shopsearch').val();
$('#shop_se_load').fadeIn('fast');
 
if(title.length == 0){
                        $('#shop_se_load').fadeOut(100);
$('#searchbody').hide();
$('.friends_onefriend').show();
$('#tab3').show();
$('#nav').show();
}else{
$.post('/index.php?go=shop&act=search',{title: title},function(d){
 
$('.shop_oneshop').hide();
$('#tab3').hide();
                        $('#shop_se_load').fadeOut(100);
$('#searchbody').show();
$('#searchbody').html(d);
});
}
},
delet: function(id){
$('#del_text_'+id).remove();
$('#del_load_'+id).show();
$.post('/index.php?go=shop&act=delet', {id: id}, function(){
$('#bmsg_'+id).remove();
$('#del_load_'+id).remove();
updateNum('#all_msg_num');
myhtml.title_close(id);
});
},
ok: function(id){
$('#ok_text_'+id).remove();
$('#ok_load_'+id).show();
$.post('/index.php?go=shop&act=ok', {id: id}, function(){
$('#bmsg_'+id).remove();
$('#ok_load_'+id).remove();
myhtml.title_close(id);
});
},
save: function(id){
var title = $('#title').val();
var text = $('#text').val();
var price = $('#price').val();
var currency = $('#currency').val();
var category = $('#category').val();
var contacts = $('#contacts').val();
var email = $('#email').val();
var vk = $('#vk').val();
var skype = $('#skype').val();
if(title != 0){
if(text != 0){
if(price != 0){
  if(currency != 0){
if(category != 0){
if(contacts != 0){
 if(email != 0){
butloading('tov', 70, 'disabled');
$.post('/index.php?go=shop&act=save', {title: title, text: text, price: price, currency: currency, category: category, contacts: contacts, email: email, vk: vk, skype: skype}, function(){
butloading('tov', 70, 'enabled', 'Сохранить');
        Page.Go('/shop'+id);
});
} else
setErrorInputMsg('email');
} else
setErrorInputMsg('contacts');
        } else
setErrorInputMsg('category');
} else
setErrorInputMsg('currency');
} else
setErrorInputMsg('price');
} else
setErrorInputMsg('text');
} else
setErrorInputMsg('title');
}
}
var BoxLang = {
    start: function(mylang){
var content = '<center>'+
'<a style="background-image: url(/templates/Default/images/lang/1.gif);background-size: 34px 26px;" class="lang_box_row" onClick="boxlang.mylang(\'1\');">Русский</a>'+
'<a style="width:70px;display:block;padding-left:60px;height:42px;line-height:42px;background-repeat:no-repeat;background-position: 10px center;color:#426A87;font-weight:bold;background-image: url(/templates/Default/images/lang/2.gif);background-size: 34px 26px;" class="lang_box_row" onClick="boxlang.mylang(\'2\'); return false">Українська</a>'+
'<a style="background-image: url(/templates/Default/images/lang/3.gif);background-size: 34px 26px;" class="lang_box_row" onClick="boxlang.mylang(\'3\'); return false">English</a>'+
'<div onclick="boxlang.list_lang(); return false" class="lang_box_rows cursor_pointer">Other languages »</div><br><br>'+
'</center>';
Box.Show('boxlang', 250, lang_vibyaz, content, lang_box_canсel, lang_new_msg_send, 'boxlang.mylangs(\'1\'); return false', 200);
$('#msg').focus();
  },
    Next_list: function(mylang){
   Box.Close('boxlang');
var content = '<div style="width:110px;float:left;padding-top:10px;padding-left:40px;">'+
'<div style="height:17px"><img style="margin-bottom:1px;margin-right:10px;" src="/templates/Default/images/img/tok.png"><a class="cursor_pointer" onClick="boxlang.mylang(\'1\');">Русский</a></div>'+
'<div style="height:17px"><img style="margin-bottom:1px;margin-right:10px;" src="/templates/Default/images/img/tok.png"><a class="cursor_pointer" onClick="boxlang.mylang(\'2\');">Українська</a></div>'+
'<div style="height:17px"><img style="margin-bottom:1px;margin-right:10px;" src="/templates/Default/images/img/tok.png"><a class="cursor_pointer" onClick="boxlang.mylang(\'3\');">English</a></div>'+
'<div style="height:17px"><img style="margin-bottom:1px;margin-right:10px;" src="/templates/Default/images/img/tok.png"><a class="cursor_pointer" onClick="boxlang.mylang(\'4\');">Беларускі</a></div>'+
'<div style="height:17px"><img style="margin-bottom:1px;margin-right:10px;" src="/templates/Default/images/img/tok.png"><a class="cursor_pointer" onClick="boxlang.mylang(\'5\');">Azərbaycan</a></div>'+
'<div style="height:17px"><img style="margin-bottom:1px;margin-right:10px;" src="/templates/Default/images/img/tok.png"><a class="cursor_pointer" onClick="boxlang.mylang(\'6\');">Հայերեն</a></div>'+
'<div style="height:17px"><img style="margin-bottom:1px;margin-right:10px;" src="/templates/Default/images/img/tok.png"><a class="cursor_pointer" onClick="boxlang.mylang(\'7\');">ქართული</a></div>'+
'<div style="height:17px"><img style="margin-bottom:1px;margin-right:10px;" src="/templates/Default/images/img/tok.png"><a class="cursor_pointer" onClick="boxlang.mylang(\'8\');">deutsch</a></div>'+
'<div style="height:17px"><img style="margin-bottom:1px;margin-right:10px;" src="/templates/Default/images/img/tok.png"><a class="cursor_pointer" onClick="boxlang.mylang(\'9\');">italiano</a></div>'+
'<div style="height:17px"><img style="margin-bottom:1px;margin-right:10px;" src="/templates/Default/images/img/tok.png"><a class="cursor_pointer" onClick="boxlang.mylang(\'10\');">español</a></div>'+
'</div>'+
'<div style="width:120px;float:left;padding-top:3px;">'+
'</div>';
Box.Show('boxlang', 500, lang_vibyaz, content, lang_box_canсel, lang_new_msg_send, 'boxlang.mylangs(\'1\'); return false', 400);
$('#msg').focus();
  },
    mylang: function(mylang) {
var text_delet = $('#text_delet').val();
$.post('/index.php?go=settings&act=mylang', {mylang:mylang}, function(){
Box.Close('boxlang');
location.reload();
$('body, html').animate({scrollTop: 0}, 250);
});
}
}

 

как назвать файл и в какую папку загрузить

Link to comment
Share on other sites

  • 3 months later...
  • 1 month later...
  • 1 month later...
  • 1 month later...

 

Разобрался, в mod надо добавить разрешение

 

     //Магазин
case "shop":
include ENGINE_DIR.'/modules/shop.php'
break;

Поставил, но сайт перестал работать

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...