mikeru
Новичок
Как определить в коде определенное место формирования страницы
Привет всем, как определить нужное мне место для вставки кнопки при формировании страницы.
Редактирую движок, написанный на php. Мне нужно вставить кнопу в определенное место. Как определить это место в коде php.
Вот начало страницы
session_start();
define ('IN_SITE', 1);
include_once ('includes/global.php');
include_once ('includes/class_formchecker.php');
include_once ('includes/class_custom_field.php');
include_once ('includes/class_user.php');
include_once ('includes/class_fees.php');
include_once ('includes/class_item.php');
include_once ('includes/functions_item.php');
include_once ('includes/class_shop.php');
далее идет выборка из базы и
if ($session->value('user_id'))
{
$user_details = $db->get_sql_row("SELECT user_id, username, shop_account_id, shop_categories,
shop_active, preferred_seller, reg_date, country, state, zip_code, balance,
default_name, default_description, default_duration, default_hidden_bidding,
default_enable_swap, default_shipping_method, default_shipping_int, default_postage_amount,
default_insurance_amount, default_type_service, default_shipping_details, default_payment_methods FROM
" . DB_PREFIX . "users WHERE user_id=" . $session->value('user_id'));
в тегах html это место выглядит так
<tr class="c1">
<td width="150" align="right">Shipping Method</td>
<td nowrap colspan="2"><select name="type_service" > <option value="Recorded" >Recorded</option> <option value="Special Delivery" selected>Special Delivery</option> <option value="Airmail" >Airmail</option> <option value="Surface Mail" >Surface Mail</option> <option value="Other" >Other</option> </select> </td>
</tr>
но где эти теги формируются не понял, есть какой то алгоритм??
Привет всем, как определить нужное мне место для вставки кнопки при формировании страницы.
Редактирую движок, написанный на php. Мне нужно вставить кнопу в определенное место. Как определить это место в коде php.
Вот начало страницы
session_start();
define ('IN_SITE', 1);
include_once ('includes/global.php');
include_once ('includes/class_formchecker.php');
include_once ('includes/class_custom_field.php');
include_once ('includes/class_user.php');
include_once ('includes/class_fees.php');
include_once ('includes/class_item.php');
include_once ('includes/functions_item.php');
include_once ('includes/class_shop.php');
далее идет выборка из базы и
if ($session->value('user_id'))
{
$user_details = $db->get_sql_row("SELECT user_id, username, shop_account_id, shop_categories,
shop_active, preferred_seller, reg_date, country, state, zip_code, balance,
default_name, default_description, default_duration, default_hidden_bidding,
default_enable_swap, default_shipping_method, default_shipping_int, default_postage_amount,
default_insurance_amount, default_type_service, default_shipping_details, default_payment_methods FROM
" . DB_PREFIX . "users WHERE user_id=" . $session->value('user_id'));
в тегах html это место выглядит так
<tr class="c1">
<td width="150" align="right">Shipping Method</td>
<td nowrap colspan="2"><select name="type_service" > <option value="Recorded" >Recorded</option> <option value="Special Delivery" selected>Special Delivery</option> <option value="Airmail" >Airmail</option> <option value="Surface Mail" >Surface Mail</option> <option value="Other" >Other</option> </select> </td>
</tr>
но где эти теги формируются не понял, есть какой то алгоритм??
