[ Поиск ] - [ Пользователи ] - [ Календарь ]
Полная Версия: Нужна помощь
kolizei
Создаю каталог предприятий и требуется нормальное расположение информации в нем.
1. На данный момент так как на картинке, а хотелось бы цивильно (лого справа, контакты слева, краткое описание слева, главное описание снизу с отступамии от полей).

Помогите плиз.
Код шаблона sobi2.details.tmpl
<?php
/**
*
@version $Id: sobi2.details.tmpl.php 3394 2008-01-19 10:29:45Z Radek Suski $
*
@package: Sigsiu Online Business Index 2
* ===================================================
*
@author
* Name: Sigrid & Radek Suski, Sigsiu.NET
* Email:
sobi@sigsiu.net
* Url: [URL=http://www.sigsiu.net]http://www.sigsiu.net[/URL]
* ===================================================
*
@copyright Copyright © 2007 Sigsiu.NET (http://www.sigsiu.net). All rights reserved.
*
@license see [URL=http://www.gnu.org/licenses/lgpl.html]http://www.gnu.org/licenses/lgpl.html[/URL ] GNU/LGPL.
* You can use, redistribute this file and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation.
*/


/*please do not remove this line */
defined( '_SOBI2_' ) || ( trigger_error("Restricted access", E_USER_ERROR) && exit() );

/* ------------------------------------------------------------------------------
* This is the template for the Details View
* ------------------------------------------------------------------------------
*/


?>
<?
[SPAN=darling]php[/SPAN] HTML_SOBI::renewal( $config,$mySobi ); ?>
<table class="sobi2Details" <?[SPAN=darling]php[/SPAN] echo $style; ?> >
<
tr>
<
td><?[SPAN=darling]php[/SPAN] echo $ico; ?><h1><?[SPAN=darling]php[/SPAN] echo $mySobi->title; ?></h1></td>
</
tr>
<
tr>
<
td><?[SPAN=darling]php[/SPAN] echo $img; ?></td>
</
tr>
<
tr>
<
td><?[SPAN=darling]php[/SPAN] HTML_SOBI::showGoogleMaps($mySobi, $config); ?></td>
</
tr>
<
tr>
<
td>
<
div id="sobi2outer">
<?[SPAN=darling]php[/SPAN] HTML_SOBI::waySearchUrl( $waySearchLink,$config ); ?>
<?
[SPAN=darling]php[/SPAN] echo HTML_SOBI::customFieldsData( $fieldsFormatted );?>
<br />
</
div>
</
td>
</
tr>
</
table>
<
table class="sobi2DetailsFooter" width="100%">
<
tr>
<
td>
<?[SPAN=darling]php[/SPAN] HTML_SOBI::addedDate($config,$mySobi); ?>
  
<?[SPAN=darling]php[/SPAN] HTML_SOBI::showHits($config,$mySobi);?>
</td>
<
td><?[SPAN=darling]php[/SPAN] HTML_SOBI::editButtons($config,$mySobi); ?></td>
</
tr>
</
table>
<?[SPAN=darling]php[/SPAN] ?>

[b]Код шаблона в самом sobi2.[/b]
<?[SPAN=darling]php[/SPAN]
/**
*
@version $Id: sobi2.details.tmpl.php 3394 2008-01-19 10:29:45Z Radek Suski $
*
@package: Sigsiu Online Business Index 2
* ===================================================
*
@author
* Name: Sigrid & Radek Suski, Sigsiu.NET
* Email:
sobi@sigsiu.net
* Url: [URL=http://www.sigsiu.net]http://www.sigsiu.net[/URL]
* ===================================================
*
@copyright Copyright © 2007 Sigsiu.NET (http://www.sigsiu.net). All rights reserved.
*
@license see [URL=http://www.gnu.org/licenses/lgpl.html]http://www.gnu.org/licenses/lgpl.html[/URL ] GNU/LGPL.
* You can use, redistribute this file and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation.
*/


/*please do not remove this line */
defined( '_SOBI2_' ) || ( trigger_error("Restricted access", E_USER_ERROR) && exit() );

/* ------------------------------------------------------------------------------
* This is the template for the Details View
* ------------------------------------------------------------------------------
*/


?>
<?
[SPAN=darling]php[/SPAN] HTML_SOBI::renewal( $config,$mySobi ); ?>
<table class="sobi2Details" <?[SPAN=darling]php[/SPAN] echo $style; ?> >
<
tr>
<
td><?[SPAN=darling]php[/SPAN] echo $ico; ?><h1><?[SPAN=darling]php[/SPAN] echo $mySobi->title; ?></h1></td>
</
tr>
<
tr>
<
td><?[SPAN=darling]php[/SPAN] echo $img; ?></td>
</
tr>
<
tr>
<
td><?[SPAN=darling]php[/SPAN] HTML_SOBI::showGoogleMaps($mySobi, $config); ?></td>
</
tr>
<
tr>
<
td>
<
div id="sobi2outer">
<?[SPAN=darling]php[/SPAN] HTML_SOBI::waySearchUrl( $waySearchLink,$config ); ?>
<?
[SPAN=darling]php[/SPAN] echo HTML_SOBI::customFieldsData( $fieldsFormatted );?>
<br />
</
div>
</
td>
</
tr>
</
table>
<
table class="sobi2DetailsFooter" width="100%">
<
tr>
<
td>
<?[SPAN=darling]php[/SPAN] HTML_SOBI::addedDate($config,$mySobi); ?>
  
<?[SPAN=darling]php[/SPAN] HTML_SOBI::showHits($config,$mySobi);?>
</td>
<
td><?[SPAN=darling]php[/SPAN] HTML_SOBI::editButtons($config,$mySobi); ?></td>
</
tr>
</
table>
<?[SPAN=darling]php[/SPAN] ?>

[b]Код шаблона в самом sobi2. CSS фаил [/b][u]
/**
*
@version $Id: com_sobi2.css 3399 2008-01-19 15:30:41Z Radek Suski $
*
@package: Sigsiu Online Business Index 2 */
/**
* Style Sheet of SOBI 2 Component com_sobi2.css
* ---------------------------------------------------------------------------
*
@copyright Copyright © 2007 Sigsiu.NET (www.sigsiu.net). All rights reserved.
*
@license see [URL=http://www.gnu.org/copyleft/lgpl.html]http://www.gnu.org/copyleft/lgpl.html[/URL ] GNU/LGPL.
* SOBI2 is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation.
* Authors: Sigrid & Radek Suski, Sigsiu.NET */


/* main SOBI2 Style to overwrite standard styles */

div.sobi2 {
}

div.sobi2 h1 {
line-height: 24px;
font-size: 22px;
}
div.sobi2 h2,
div.sobi2 h3,
div.sobi2 h4 {
padding-left: 5px;
}

/* Style for Standard Joomla! mosmsg-class, because often undefined */
/* To use the style of your template, delete this entry. */

.message {
padding: 5px;
background-color: #990000;
color: #FFFFFF;
font-size: 11px;
font-weight: bold;
}
/* if there is no mosmsg line defined by your template remove the display:none and SOBI2 will show its own mosmsg line */
#sobimsg {

display:none;
}

/* Style of the Header Menu */
/* -------------------------------------------------------- */
/* Style of Header Menu */

table.sobi2Header {
border-style: none;
}
a.sobi2Header {
padding: 5px;
font-size: 14px;
}

/* Style of Main Component Description */
/* -------------------------------------------------------- */

table.sobi2CompDesc {
padding: 5px;
width: 98%;
}

/* Style of Category List */
/* -------------------------------------------------------- */

table#sobi2CatListSymbols {
width: 98%;
}
table#sobi2CatListSymbols td {
vertical-align: top;
border-style: none;
}

/* Style of Category Icon */
img.sobi2CatIco {
border-style: none;
float: left;
clear: left;
}

/* Style of Category Name */
p.sobi2CatName {
font-size: 13px;
padding-left: 50px;
margin: 2px 0 2px 0;
}
/* Style of Category Introtext */
p.sobi2CatsListSymbolsIntrotext {
font-size: 11px;
padding-left: 50px;
margin-top: 4px;
}

span.sobi2SubcatsList {
display:block;
}

/* Style of the shown entries/subcategories numbers */
span.sobi2EditlinktipItems {
text-decoration: none;
border-bottom: 1px dashed #aaa;
}
span.sobi2EditlinktipCats {
text-decoration: none;
border-bottom: 1px dashed #aaa;
}


/* Style for Entries in Category View (Cards View) */
/* -------------------------------------------------------- */

table.sobi2Listing {
width: 98%;
margin-bottom: 10px;
}
table.sobi2Listing td {
border-style: none;
border-color: #3a4794;
border-width: 2px;
margin-top: 0px;
vertical-align: top;
}

/* Style for empty Cards (Placeholder) */
table.sobi2Listing td.sobi2EmptyCell {
border-style: none;
background-color: #ffffff;
}
table.sobi2Listing input {
float:left;
}

/* Style of Icon (Small Image) */
.sobi2Listing img {
float: right;
border-style: none;
padding-top: 5px;
padding-right: 5px;
}

/* Style of Title (Name of Entry) */
p.sobi2ItemTitle {
margin-left: 5px;
margin-top: 5px;
padding-left: 5px;
padding-top: 5px;
clear:left;
}
p.sobi2ItemTitle a {
font-size: 13px;
}

/* Styles for the fields */
/* Add style for each field you added in the form span.sobi2Listing_field_yourname */

span.sobi2Listing_field_myfield,
span.sobi2Listing_field_street,
span.sobi2Listing_field_postcode,
span.sobi2Listing_field_county,
span.sobi2Listing_field_country,
span.sobi2Listing_field_email,
span.sobi2Listing_field_contact_person,
span.sobi2Listing_field_phone,
span.sobi2Listing_field_fax,
span.sobi2Listing_field_city,
span.sobi2Listing_field_hotline,
span.sobi2Listing_field_phone,
span.sobi2Listing_field_federal_state {
padding-left: 10px;
}
span.sobi2Listing_field_website {
float:right;
padding-right: 5px;
margin-bottom: 15px;
}

/* Style of Edit and Delete Buttons in Category View */
input.sobi2EditEntryButton {
}


/* Style for Page Navigation of Entries */
#sobi2PageNav {

text-align: center;
}


/* Style of Details View */
/* -------------------------------------------------------- */

table.sobi2Details {
margin-top: 15px;
margin-left: 5px;
padding: 10px;
width: 98%;
}
/* Style of Entry Name */
table.sobi2Details h1 {
padding-top: 5px;
}

/* Container for all custom fields data */
div#sobi2outer{
float: left;
margin-top: 0px; /* position it vertically */
padding-bottom: 5px; /* to fix IE bug */
}

/* Style of the Image */
img.sobi2DetailsImage{
border-style: none;
float: right;
padding-right: 5px;
padding-top: 5px;
}
img.sobi2DetailsIcon {
}


/* Styles for the fields */
/* Add style for each field you added in the form span#sobi2Details_field_yourname */

span#sobi2Details_field_myfield,
span#sobi2Details_field_street,
span#sobi2Details_field_postcode,
span#sobi2Details_field_county,
span#sobi2Details_field_country,
span#sobi2Details_field_phone,
span#sobi2Details_field_fax,
span#sobi2Details_field_city,
span#sobi2Details_field_hotline,
span#sobi2Details_field_phone,
span#sobi2Details_field_contact_person,
span#sobi2Details_field_federal_state {
font-size: 12px;
}
span#sobi2Details_field_website,
span#sobi2Details_field_email {
padding-top: 8px;
font-size: 12px;
display: block;
}
span#sobi2Details_field_description {
padding-top: 20px;
margin-top: 0px; /* position it vertically */
}

/* Style for Way Search */
span.sobi2WaySearch {
border-style: none;
float: right;
clear: right;
margin-top: 15px; /* position it vertically */
display: block;
padding-right: 5px;
}
span.sobi2WaySearch img {
padding-top: 8px;
border-style: none;
padding-left: 17px;
}

/* Style for Google Maps */
div#sobi2GoogleMaps {
float: right;
position: relative;
border: 1px solid #333333;
margin-top: 30px;
margin-right: 5px;
}

/* Style of Details Footer Line */
td.sobi2DetailsFooter {
padding-left: 5px;
}

/* Style of Edit and Delete Buttons in Details View */
input#sobi2EditEntryButton, input#sobi2DelEntryButton {
float:right;
}


/* Style of Footer Line */
/* -------------------------------------------------------- */

td#sobi2Footer, td#sobi2Footer a {
font-size: 9px;
color: #999999;
padding-top: 10px;
text-decoration: none;
}
table.sobi2Footer {
width: 98%;
}
td#sobi2rss {
}
td#sobi2rss img {
border-style: none;
float: right;
}

/* Style of Entry Form */
/* -------------------------------------------------------- */
/* Header Line */

p#sobi2EditFormHeader {
font-weight:bold;
font-size: 14px;
padding: 5px;
}

/* Info Requested Fields */
#sobi2ReqFieldsInfo {

padding: 5px;
}

form#sobi2EditForm table,
table#sobi2FormTable {
padding: 5px;
width: 99%;
}
table#sobi2FormTable2, table#sobi2FormTable3 {
width: 99%;
}
table#sobi2FormTable td,
table#sobi2FormTable2 td,
table#sobi2FormTable3 td {
vertical-align: top;
}

/* Style of Input fields as entered in Fields Manager */
input#field_entry_name,
input#field_postcode,
input#field_street,
input#field_city,
input#field_county,
input#field_country,
input#field_federal_state,
input#field_email,
input#field_website,
input#field_contact_person,
input#field_phone,
textarea#sobi2MetaKey,
textarea#sobi2MetaDesc,
input#sobi2Ico,
input#sobi2Img,
input#field_fax,
input#field_hotline,
input#field_street {
}

label.field_entry_name,
label.field_postcode,
label.field_street,
label.field_city,
label.field_county,
label.field_country,
label.field_federal_state,
label.field_email,
label.field_website,
label.field_contact_person,
label.field_phone,
label.field_fax,
label.field_hotline,
label.field_description,
label.sobi2Ico,
label.sobi2Img,
label.sobi2MetaKey,
label.sobi2MetaDesc {
}


/* Style for Checkboxes */
input#accept_rules,
input#field_website_on,
input#field_description_on {
}

/* Style for Not Free Label */
span.sobi2FormNotFreeLabel {
display: block;
padding-top: 5px;
}

/* Style for Category Information/Descriptions */
table#sobi2FormCats {
width: 99%;
border-style: none;
margin: 10px;
}
table#sobi2FormCats td {
padding: 10px;
border-style: solid;
border-color: #CCCCCC;
border-width: 1px;
}
p#catsTitle, p#catIntroText {
width: 98%;
font-size: 12px;
font-weight: bold;
}
p#catMsg {
width: 98%;
}

/* Style for Add and Remove Button */
#sobi2AddCatBt, #sobi2RemoveCatBt {

width:50px;
}
/* Style for column with Buttons */
td.sobi2CatButtons {
width: 50px;
vertical-align: top;
}

/* Style for column with selected Categories */
td.sobi2CatSelected {
vertical-align: top;
width: 150px;
}
/* Styles for the box with Selected Categories */
select#sobi2SlectedCats {
height: 100px;
width: 150px;
}
select#sobi2SlectedCatsID {
height: 0px;
width: 0px;
border-style: none;
}

/* Style for Safety Line */
table#sobi2FormFooter {
float: left;
clear: left;
}
table#sobi2FormFooter td {
vertical-align: bottom;
}
img#seccode {
}
input#sobi2SendButton {
float: right;
}
input#sobi2CancelButton {
float: right;
}

/* Style for Payment Info */
/* -------------------------------------------------------- */
/* Style for upload info */

p.sobi2msg {
padding-top: 15px;
padding-left: 5px;
font-size: 12px;
}
/* Container for all payment info */
div.sobi2PaymentContainer {
width: 98%;
}

/* Style for Summary of Costs */
table#sobi2Payment {
width: 50%;
margin-left: 5px;
padding-right: 5px;
}
table#sobi2Payment td,
td.sobi2PayOption {
width: 70%;
text-align: right;
}
td.sobi2PayFees {
width: 30%;
text-align: right;
}
td#sobi2PayTotal {
width: 30%;
text-align: right;
border-top: solid 1px #606060;
font-weight: bold;
color: red;
}

/* Style for Payment Methods */
table#sobi2PaymentMethod {
width: 70%;
margin-top: 30px;
margin-left: 5px;
}
table#sobi2PaymentMethod img {
border-style: none;
}
table#sobi2PaymentMethod a:hover {
font-style: normal;
text-decoration: none;
}
table#sobi2PaymentMethodBank,
table#sobi2PaymentMethodPayPal {
width: 60%;
margin-top: 15px;
border-style: none;
}
td#sobi2PaymentMethodBank,
td#sobi2PaymentMethodPayPal {
text-align: left;
vertical-align: top;
border-style: none;
}
td#sobi2PaymentMethodBank b {
padding-bottom: 3px;
display: block;
}


/* Styles for Searching */
/* -------------------------------------------------------- */

table.sobi2eSearchForm {
width: 95%;
margin-left: 5px;
}
span#sobi2SearchResultsSerchingString {
font-weight: bold;
}
div#sobiSearchResponseContainer table {
width:95%;
}

/* Styles for the new extended search function */
/* -------------------------------------------------------- */
/* height of the Div of category chooser */

div#sobiSearchFormCatsSelection {
}
/* select boxes with categories */
.catChooseBox {
}

#sobiSearchFormExtOptToggle {
display: inline;
}
div#SobiSearchForm2dropsy {
margin-left: 10px;
}
td#sobi2eSearchEmptyCell {
width: 50%;
}

/* Style for the Menu Module */
/* -------------------------------------------------------- */

div.sobi2MenuMod {
margin-bottom: 8px;
margin-top: 10px;
}

/* Style for the Search & Add Entry Links */
a.sobi2MenuModA {
margin-left: 20px;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
}


/* Style of dTree 2.05 */
/* Copyright © 2002-2003 Geir Landr??? */
/* -------------------------------------------------------- */

.dtree {
font-family: Arial, Verdana, Geneva, Helvetica, sans-serif;
font-size: 11px;
color: #666;
white-space: nowrap;
overflow: auto;
}
.dtree img {
border: 0px;
vertical-align: middle;
}
.dtree a {
color: #333;
text-decoration: none;
font-weight: normal;
}
.dtree a.node, .dtree a.nodeSel {
white-space: nowrap;
padding: 1px 2px 1px 2px;
}
.dtree a.node:hover, .dtree a.nodeSel:hover {
color: #333333;
text-decoration: underline;
}
.dtree a.nodeSel {
background-color: #c0d2ec;
}
.dtree .clip {
overflow: hidden;
}
a.treeNode:hover {
color: #333333;
text-decoration: none;
font-weight: normal;
}
a.treeNode:visited {
color: #333333;
text-decoration: none;
font-weight: normal;
}
a.treeNode:active, a.treeNode:focus {
color: #333333;
text-decoration: none;
font-weight: normal;
background-color: #c0d2ec;
}


/* Styles for SigsiuTree */
/* -------------------------------------------------------- */

.sigsiuTree {
font-family: Arial, Verdana, Geneva, Helvetica, sans-serif;
font-size: 11px;
color: #666;
white-space: nowrap;
overflow: auto;
}
.sigsiuTree img {
border: 0px;
vertical-align: middle;
}
.sigsiuTree a {
color: #333;
text-decoration: none;
font-weight: normal;
}
.sigsiuTree a.node, .sigsiuTree a.nodeSel {
white-space: nowrap;
padding: 1px 2px 1px 2px;
}
.sigsiuTree a.node:hover, .sigsiuTree a.nodeSel:hover {
color: #333333;
text-decoration: underline;
}
.sigsiuTree a.nodeSel {
background-color: #c0d2ec;
}
.sigsiuTree .clip {
overflow: hidden;
}
div.sigsiuTree a, .sigsiuTree a, a.treeNode:hover, a.treeNode, a.treeNode:visited {
color: #333333 !important;
text-decoration: none !important;
font-weight: normal !important;
}
a.treeNode:active, a.treeNode:focus {
color: #333333;
text-decoration: none;
font-weight: normal;
background-color: #c0d2ec;
}


/* Styles for custom listings */
/* -------------------------------------------------------- */

div.sobi2CustomListingCatsHeader,
div.sobi2CustomListingItemsHeader {
padding-left: 5px;
margin-top: 5px;
margin-bottom: 10px;
}
div.sobi2CustomListingHeader {
padding-left: 5px;
font-size: 15px;
margin-bottom: 15px;
margin-top: 5px;
}
div#sobi2AlphaLinks {
width: 98%;
text-align: center;
padding: 5px;
padding-bottom: 15px;
}


/* Styles for the plugin container */
/* -------------------------------------------------------- */

table.sobi2Listing_plugins {
border-style:none;
width: 98%;
padding-left: 8px;
}
div.sobi2FormTabHeader {
padding: 5px 2px 2px 5px;
cursor: pointer;
font-size: 12px;
font-weight: bold;
}
div.sobi2FormtabContent {
overflow: hidden;
margin-left: 5px;
margin-top: 5px;
}

/* Labels */
/* -------------------------------------------------------- */

span.sobiNewLabel {
color: rgb(51, 51, 255);
font-size: 12px;
font-weight: bold;
padding: 2px;
}
span.sobiHotLabel {
color: rgb(255, 0, 0);
font-size: 12px;
font-weight: bold;
padding: 2px;
}
span.sobiUpdatedLabel {
color: rgb(0, 153, 0);
font-size: 12px;
font-weight: bold;
padding: 2px;
}

[b]V-Card Шаблон[/b][/u]
<?[SPAN=darling]php[/SPAN]
/**
*
@version $Id: sobi2.vc.tmpl.php 2895 2007-12-01 19:51:41Z Radek Suski $
*
@package: Sigsiu Online Business Index 2
* ===================================================
*
@author
* Name: Sigrid & Radek Suski, Sigsiu.NET
* Email:
sobi@sigsiu.net
* Url: [URL=http://www.sigsiu.net]http://www.sigsiu.net[/URL]
* ===================================================
*
@copyright Copyright © 2007 Sigsiu.NET (http://www.sigsiu.net). All rights reserved.
*
@license see [URL=http://www.gnu.org/licenses/lgpl.html]http://www.gnu.org/licenses/lgpl.html[/URL ] GNU/LGPL.
* You can use, redistribute this file and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation.
*/


/*please do not remove this line */
defined( '_SOBI2_' ) || ( trigger_error("Restricted access", E_USER_ERROR) && exit() );

/* ------------------------------------------------------------------------------
* This is the template for the V-Card View
* ------------------------------------------------------------------------------
*/
/* Don't remove this line! */

function sobi2VCview($id, $style, $ico, $img, $title, $fieldsObjects, $fieldsFormatted, $plugins, $editButton = null, $deleteButton = null)
{
// For advanced templating You can coment it in if You need to access other sobi2 object proporties
// $mySobi = new sobi2( $id );
// $waySearchLink = HTML_SOBI::createWaySearchUrl( $id );

?>
<!-- here starts the template -->

<
td <?[SPAN=darling]php[/SPAN] echo $style; ?>>
<?[SPAN=darling]php[/SPAN] echo $editButton; ?>
<?
[SPAN=darling]php[/SPAN] echo $deleteButton; ?>
<?
[SPAN=darling]php[/SPAN] echo $ico; ?>
<?
[SPAN=darling]php[/SPAN] echo $img; ?>

<?
[SPAN=darling]php[/SPAN] echo $title; ?>
<?
[SPAN=darling]php[/SPAN] echo HTML_SOBI::customFieldsData($fieldsFormatted);?>
<!-- here ends the template -->


<!--
Don't remove this line! -->
</td>
<?php
// For advanced templating You can coment it in
// unset($mySobi);
}
?>


И по возможности объясните как подкатигории при открытие сделать горизонтально а не вертикально.

Заранее благодарен. e-meil: kolizeiua@gmail.com



Спустя 1 месяц, 19 дней, 4 часа, 39 минут, 13 секунд (27.11.2010 - 21:26) jysed написал(а):
Помогите исправить ошибку )


Проблемка заключается вот в чем на сайте при добалении рекламмы с главного меню страница открывается и все в порядке а еслив заказать со внутреннего счета выдает ВОТ Parse error: syntax error, unexpected $end in /var/www/********/data/www/*****.ru/moneyforadv_dyn.php on line 187 Помогите исправить данный казус Сайт на php

Спустя 8 минут, 55 секунд (27.11.2010 - 21:35) twin написал(а):
Даже попытка отформатировать код не принесла желания разбираться в такой портянке... А локализировать проблему не пробовали?

Спустя 2 дня, 20 часов, 13 минут, 14 секунд (30.11.2010 - 17:48) Jysed написал(а):

<?
session_start();
$sql="select price from tb_config where item='mfadyn'";
$res=mysql_query($sql);
$dyn=mysql_result($res,0,0);

$sql="select price from tb_config where item='mfahldyn'";
$res=mysql_query($sql);
$hldyn=mysql_result($res,0,0);
if (isset($_POST["url"]))
{
function limpiarez($mess)
{
$mess=str_replace(";"," ",$mess);
$mess=str_replace("$"," ",$mess);
$mess=str_replace("'"," ",$mess);
$mess=strip_tags($mess);
return $mess;
}

$plan=intval($_POST["plan"]);
if($plan<25)
{
echo "<img src=\"images/error.png\" align=\"middle\"> Минимальное количество визитов для заказа - 10!</td></table>";
include('footer.php');
exit();
}
if($plan<25)
{
echo "<img src=\"images/error.png\" align=\"middle\"> Введено неверное значение в поле 'Количество посещений', оно должно быть числовым и больше 0!!!</td></table>";
include('footer.php');
exit();
}

$url1=limpiarez($_POST["url"]);

$description=limpiarez($_POST["description"]);

$highlight=$_POST["highlight"];
if ($highlight!=0 and $highlight!=1)
{
echo "<img src=\"images/error.png\" align=\"middle\"> Ошибка ввода!!!";
include('footer.php');
exit();
}

$url1=htmlspecialchars($url1);
$description=htmlspecialchars($description);

if ($plan==""){echo "<img src=\"images/error.png\" align=\"middle\"> Указаны не все поля</td></table>";include('footer.php'); exit();}
if ($url1==""){echo "<img src=\"images/error.png\" align=\"middle\"> Указаны не все поля</td></table>";include('footer.php'); exit();}
if ($description==""){echo "<img src=\"images/error.png\" align=\"middle\"> Указаны не все поля</td></table>";include('footer.php'); exit();}

$user=uc($_SESSION["username"]);
$pass=uc($_SESSION["password"]);


$res=mysql_query("select count(username) as kolvo from tb_users where username='$user' and password='$pass'");
$row=mysql_fetch_array($res);
$kolvo=$row["kolvo"];

$res=mysql_query("select money from tb_users where username='$user' and password='$pass'");
$res=mysql_fetch_array($res);
$money=$res["money"];

$sql="select price from tb_config where item='mfadyn'";
$res=mysql_query($sql);
$dyn=mysql_result($res,0,0);

$sql="select price from tb_config where item='mfahldyn'";
$res=mysql_query($sql);
$hldyn=mysql_result($res,0,0);

$amount=$plan*$dyn;
if ($highlight==1) $amount=$amount+$hldyn;

if($kolvo==0) { echo "<img src=\"images/error.png\" align=\"middle\"> Ошибка! Для заказа рекламы с внутреннего счета Вам необходимо авторизоваться!</td></table>";include('footer.php'); exit(); }
if($money<$amount) {echo "<img src=\"images/error.png\" align=\"middle\"> На Вашем балансе недостаточно средств!</td></table>";include('footer.php'); exit(); }

$expa=$money-$amount;

$fechainicia=time();

$sql = "INSERT INTO tb_ads (fechainicia, paypalemail, plan, url, description, tipo, highlight, email) VALUES('$fechainicia','$user','$plan','$url1','$description','ads','$highlight', '$email')";
mysql_query($sql) or die(mysql_error());

$t=date("d.m.Y", time());
$res=mysql_query("select count(id) as kol from tb_adsdate where data='$t'");
$res=mysql_Fetch_array($res);
if($res["kol"]>0)
{
mysql_query("update tb_adsdate set kolvo=kolvo+1 where data='$t'");
}else{
mysql_query("insert into tb_adsdate (data,kolvo) values ('$t','1')");
}

$sql="update tb_users set money='$expa' where username='$user'";
mysql_query($sql) or die(mysql_error());

echo "<center><img src=\"images/ok.png\" align=\"middle\"> <b><green>Ваша ссылка добавлена</green></b></center></td></table>";
include('footer.php');
exit();
}
?>
<script language=javascript>
<? if($timerpay == 1)
{ ?>
var
t5=<?=$dyn5?>;
var t10=<?=$dyn10?>;
var t15=<?=$dyn15?>;
var t20=<?=$dyn20?>;
var t25=<?=$dyn25?>;
var t30=<?=$dyn30?>;
var t35=<?=$dyn35?>;
var t40=<?=$dyn40?>;
var t45=<?=$dyn45?>;
var t50=<?=$dyn50?>;
var t55=<?=$dyn55?>;
var t60=<?=$dyn60?>;
<?
}
?>
var
dyn=<?=$dyn?>;
var hldyn=<?=$hldyn?>;

var celoe;
var drob;
var res;
function okrugl(nums)
{
celoe=Math.floor(nums);
drob=(nums-celoe)*100;
drob=Math.floor(drob);
if(drob>=10)
{
res=celoe+'.'+drob;
}else{
res=celoe+'.0'+drob;
}
return res;
}

function getZakaz(frm)
{
<?if($timerpay == 0)
{ ?>
frm.summa.value=frm.plan.value*dyn+frm.highlight.value*hldyn;
frm.summa.value=okrugl(frm.summa.value);


}
</script>
<
fieldset><legend>.::Оформление заказа::.</legend>
<
form method="post" action="moneyforadv.php?adv=dyn">
<
table width="400" border="0" align="center">
<
tr>
<
td width="150" align="left"><p><label>Текст ссылки:</label></p></td>
<
td width="250" align="left"><input type="text" name="description" size="25" maxlength="100" autocomplete="off" class="field" value="" tabindex="2" /></td>
</
tr>
<
tr>
<
td width="150" align="left"><p><label>URL:</label></p></td>
<
td width="250" align="left"><input type="text" name="url" size="25" maxlength="150" autocomplete="off" class="field" value="http://" tabindex="3" /></td>
</
tr>
<
tr>
<
td width="150" align="left"><p><label>Кол-во визитов:</label></p></td>
<
td width="250" align="left"><input name="plan" type="text" onchange="getZakaz(this.form)" size="6" maxlength="6" />
</
td>
</
tr>
<
tr>
<
th width="150" align="left"><b>Выделение цветом</b></th>
<
td>
<
select name="highlight" onchange="getZakaz(this.form)" autocomplete="off" >
<
option value="0">Не выделять</option>
<
option value="1">Выделить</option>
</
select></td></tr>
<
tr>
<
td width="150" align="left"><p><label>Стоимость заказа: </label></p></td>
<
td width="250" align="left"><input type='text' size='10' maxlength='20' readonly='readonly' name='summa' autocomplete="off" value=""/></td>
</
tr>
<
tr>
<
td width="150" align="left"> </td>
<
td width="250" align="right"><input type="submit" value="Конвертировать" class="submit" tabindex="6" />
</
td>
</
tr>
</
table>
</
form>
</
fieldset>




помогите найти ошибку все уже перетыкал ниче не получается

Спустя 4 минуты, 5 секунд (30.11.2010 - 17:52) Basili4 написал(а):
Jysed
а что это за магическая строчка отметьте её в коде.

Спустя 3 часа, 8 минут, 53 секунды (30.11.2010 - 21:01) Jysed написал(а):
При конвертации рекламы выдает Parse error: syntax error, unexpected $end in /var/www/********/data/www/*****.ru/moneyforadv_dyn.php on line 187



я так понел что 187 строка с ошибкой но она вроде в порядке

</table>
</form> ето она(
</fieldset>

не закрытых скобок тож не нашел мож конечно я слеп)

помогите что не правильно

Спустя 13 минут, 15 секунд (30.11.2010 - 21:14) nugle написал(а):
проблема в том что вы открыли фигурную скобку и не закрыли
function getZakaz(frm)
[
b]{[/b]
<?if($timerpay == 0)
{ ?>
frm.summa.value=frm.plan.value*dyn+frm.highlight.value*hldyn;
frm.summa.value=okrugl(frm.summa.value);


}

Спустя 1 час, 2 минуты, 14 секунд (30.11.2010 - 22:16) Jysed написал(а):

nugle от души за помощь smile.gif

function getZakaz(frm)
{
<?if($timerpay == 0)
{ ?>
frm.summa.value=frm.plan.value*dyn+frm.highlight.value*hldyn;
frm.summa.value=okrugl(frm.summa.value);
<?
}
?>

}

Все работает! Полезный форум)

Спустя 2 месяца, 3 дня, 20 часов, 57 минут, 1 секунда (6.02.2011 - 19:13) Jysed написал(а):
Привет всем)
Помогите решить проблемку
Выдает ошибку Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource in /var/www/******/data/www/*****.ru/donload.php on line 130



вот сам код страници (проблемка в том что он немного закодирован как быть? помогите.

<?php
session_start();
if(!(isset($_SESSION['username']) && isset($_SESSION['password'])))
{
;echo ' <script type="text/javascript">
location.replace("login.php");
</script>
<noscript>
<meta http-equiv="refresh" content="0; url=login.php">
</noscript>
';
exit();
}
include('header.php');
;echo '



<fieldset style="background: #ffffff;
border: 0.5px solid #000000;
line-height: 1.4em;
padding: 2px;
margin: 0 0 11px 1px;">
<h3><center>ОПЛАЧИВАЕМЫЕ СКАЧИВАНИЯ</center></h3>
<br>
<hr>
<br>
На этой странице отображены вопросы, за правильные ответы на которые, Вы получите деньги на свой счет.<br>
Для ответа на вопрос отведена только одна попытка. <br>
За правильный ответ Вам будет начислена оплата рекламодателя. <br>
<font color=#ff0000>За неверный ответ с Вашего счета будет списана аналогичная сумма.</font><br>


<hr>
<br><br>
<table width="100%">
<tr>
<td style="background: #4169E1;"><font color=#ffffff>#</font></td>
<td style="background: #4169E1;"><font color=#ffffff>Вопрос</font></td>
<td style="background: #4169E1;"><font color=#ffffff>Оплата</font></td>
<td style="background: #4169E1;"><font color=#ffffff>Осталось</font></td>
</tr>
';
include('config.php');
if($_POST['page']!='')
{
$IIIIIIIIIIII=$_POST['page'];
}else{
$IIIIIIIIIIII='1';
}
$IIIIIIIIIIIl=20*($IIIIIIIIIIII-1);
$IIIIIIIIIII1=$_SESSION['username'];
$IIIIIIIIIIlI = mysql_query("SELECT * FROM tb_donloadfile where tkolvo>'0' order by tb_donloadfile.id asc limit $IIIIIIIIIIIl,20");
while ($IIIIIIIIIIll = mysql_fetch_array($IIIIIIIIIIlI)) {
$IIIIIIIIIIl1=$IIIIIIIIIIll['id'];
$IIIIIIIIII1I=$IIIIIIIIIIll['amount'];
$IIIIIIIIII1l=$IIIIIIIIIIll['tkolvo'];
$IIIIIIIIII11=$IIIIIIIIIIll['descr'];
$IIIIIIIIIlII=$IIIIIIIIIIll['author'];
$IIIIIIIIIlIl=$IIIIIIIIIIll['title'];
echo"<tr><td align=center style=\"background: #ffffff;
border: 0.5px solid #000000;
line-height: 1.4em;
padding: 2px;
margin: 0 0 11px 1px;\">";
echo"$IIIIIIIIIIl1";
echo"

</td><td align=center style=\"background: #ffffff;
border: 0.5px solid #000000;
line-height: 1.4em;
padding: 2px;
margin: 0 0 11px 1px;\">";
if($IIIIIIIIIlII!=$IIIIIIIIIII1){
echo"<div id=\"ahref\"><a href=\"donloadwiev.php?ad=".$IIIIIIIIIIl1."\" class=\"maina\" STYLE=\"color:#000099\" title=\"ПРОСМОТРЕТЬ ЗАДАНИЕ\"><h1>$IIIIIIIIIlIl</h1></a></div>";
} else{
echo'<font color=#ff0000>Это ваше оплачиваемое скачивание</font>';
}
echo"</td><td align=center style=\"background: #ffffff;
border: 0.5px solid #000000;
line-height: 1.4em;
padding: 2px;
margin: 0 0 11px 1px;\">
<font color=#228B22>$IIIIIIIIII1I</font>
";
echo'</td>';
echo"<td align=center style=\"background: #ffffff;
border: 0.5px solid #000000;
line-height: 1.4em;
padding: 2px;
margin: 0 0 11px 1px;\">";
echo"$IIIIIIIIII1l</td></tr>";
}
$IIIIIIIIIlI1=mysql_query("select count(*) from tb_donloadfile where tkolvo>'0' ");
$IIIIIIIIIllI=mysql_result($IIIIIIIIIlI1,0,0);
if($IIIIIIIIIllI>0)
{
$IIIIIIIIIlll=$IIIIIIIIIllI/20;
$IIIIIIIIIll1=floor($IIIIIIIIIlll);
if($IIIIIIIIIlll>$IIIIIIIIIll1)
{
$IIIIIIIIIlll=$IIIIIIIIIll1+1;
}
echo "</table><b>Текущая страница $IIIIIIIIIIII из $IIIIIIIIIlll</b><br>
<form action='' method=post>
<select name='page'>";
for($IIIIIIIIIl1I=1;$IIIIIIIIIl1I<=$IIIIIIIIIlll;$IIIIIIIIIl1I++)
{
echo "<option value='$IIIIIIIIIl1I'>$IIIIIIIIIl1I</option>";
}
echo "</select>
<input type=submit value='Перейти'></form><br><br>";
}else{
echo'</table>';
}
;echo '






</fieldset><br>
<center>

';include('rotator.php');;echo '<div id="ahref"><a href="advertise.php?adv=banner" title="Эффективная реклама Вашего сайта">Разместить баннер 480х60</a></div>

</center>
';
mysql_close($IIIIIIIIIl1l);
;echo '


';include('footer.php');;echo '

';

Спустя 33 минуты, 23 секунды (6.02.2011 - 19:47) inpost написал(а):
Jysed
C новыми вопросами в новые темы, а так же оформляйте код [ php ] бб-кодами.

Спустя 1 месяц, 14 дней, 1 час, 44 минуты, 29 секунд (20.03.2011 - 21:31) jysed написал(а):
Приветствую! не могу понять такую штуку: пользователь просматривает рекламу ему зачисляется вознаграждение но к примеру если поставить значение вознаграждения 0.0000001 то в бд пишет 1e-06 в чем может быть проблема бд не распознает длинные числа? или для чего их сокращает?

Спустя 1 час, 37 минут, 55 секунд (20.03.2011 - 23:09) inpost написал(а):
jysed
На сколько надо быть "кхе-кхе", чтобы видеть последнее сообщение в данной теме от модератора: "Со своими вопросами в свои темы", и всё равно взять и написать в эту тему вопрос?

Спустя 20 часов, 58 минут, 2 секунды (21.03.2011 - 20:07) jysed написал(а):
mad.gif тема не в том месте была написана ну и чего тут такого? я помощи искал! спамом не занимался ничего не рекламировал! ответ простой на мой вопрос был, только отвечать на него что то некому!
Быстрый ответ:

 Графические смайлики |  Показывать подпись
Здесь расположена полная версия этой страницы.
Invision Power Board © 2001-2024 Invision Power Services, Inc.