hello again
this page (
http://universpiti.gr/test/index.php?page=item&action=item_add) its giving me errors like you can see at the image that i attach
i find out the the problem its in the itm-post.php file
i am attaching to this file if anyone can see what is the problem in there?
<?php
/*
* Osclass- – software for creating and publishing online classified
* advertising platforms
*
* Copyright (C) 2013 Osclass-
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License
* as published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public
* License along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
// meta tag robots
osc_add_hook('header','infinity_nofollow_construct');
osc_enqueue_script('jquery-validate');
infinity_add_body_class('item item-post');
$action = 'item_add_post';
$edit = false;
if(Params::getParam('action') == 'item_edit'){
$action = 'item_edit_post';
$edit = true;
}
?>
<?php osc_current_web_theme_path('header.php') ; ?>
<?php ItemForm::location_javascript(); ?>
<?php if(osc_images_enabled_at_items()) ItemForm::photos_javascript(); ?>
<div class="form-container form-horizontal">
<div class="resp-wrapper">
<div class="header">
<h1><?php _e('Publish a listing', 'infinity'); ?></h1>
</div>
<ul id="error_list"></ul>
<form name="item" action="<?php echo osc_base_url(true);?>" method="post" enctype="multipart/form-data" id="item-post">
<fieldset>
<input type="hidden" name="action" value="<?php echo $action; ?>" />
<input type="hidden" name="page" value="item" />
<?php if($edit){ ?>
<input type="hidden" name="id" value="<?php echo osc_item_id();?>" />
<input type="hidden" name="secret" value="<?php echo osc_item_secret();?>" />
<?php } ?>
<h2><?php _e('General Information', 'infinity'); ?></h2>
<div class="control-group">
<label class="control-label" for="select_1"><?php _e('Category', 'infinity'); ?></label>
<div class="controls">
<?php ItemForm::category_multiple_selects(null, null, null, __('Select a category', 'infinity')); ?>
</div>
</div>
<div class="control-group">
<label class="control-label" for="title[<?php echo osc_locale_code(); ?>]"><?php _e('Title', 'infinity'); ?></label>
<div class="controls">
<?php ItemForm::title_input('title',osc_locale_code(), osc_esc_html( infinity_item_title() )); ?>
</div>
</div>
<div class="control-group">
<label class="control-label" for="description[<?php echo osc_locale_code(); ?>]"><?php _e('Description', 'infinity'); ?></label>
<div class="controls">
<?php ItemForm::description_textarea('description',osc_locale_code(), osc_esc_html( infinity_item_description() )); ?>
</div>
</div>
<?php if (function_exists('custom_attributes'))
custom_attributes();?>
<div class="control-group">
<div class="controls">
<?php
if($edit) {
ItemForm::plugin_edit_item();
} else {
ItemForm::plugin_post_item();
}
?>
</div>
</div>
<?php if( osc_price_enabled_at_items() ) { ?>
<div class="control-group">
<label class="control-label" for="price"><?php _e('Τιμή', 'bender'); ?></label>
<div class="controls" id="nbr">
<?php ItemForm::price_input_text(); ?>
<?php ItemForm::currency_select(); ?>
</div>
</div>
<script type="text/javascript">
$('#nbr').on('keypress', function(ev) {
var keyCode = window.event ? ev.keyCode : ev.which;
//codes for 0-9
if (keyCode < 48 || keyCode > 57) {
//codes for backspace, delete, enter
if (keyCode != 0 && keyCode != 8 && keyCode != 13 && !ev.ctrlKey) {
ev.preventDefault();
}
}
});
</script>
<?php } ?>
<?php if( osc_images_enabled_at_items() ) { ?>
<div class="box photos">
<h2><?php _e('Photos', 'infinity'); ?></h2>
<?php if( osc_images_enabled_at_items() ) {
ItemForm::ajax_photos();
} ?>
</div>
<?php } ?>
<div class="box location">
<h2><?php _e('Listing Location', 'infinity'); ?></h2>
<?php
$rCountries = osc_get_countries() ;
switch( count($rCountries) ) {
case 0: ?>
<div class="control-group">
<label class="control-label" for="country"><?php _e('Country', 'infinity'); ?></label>
<div class="controls">
<input class="country_name" id="country_name" type="text" name="country" value="<?php echo get_country_name($item) ; ?>" />
</div>
</div>
<?php
break;
case 1: ?>
<input class="country_id" id="country_id" type="hidden" name="countryId" value="<?php echo $rCountries[0]['pk_c_code'] ; ?>" />
<?php
break;
default:
if($edit) { ?>
<div class="control-group">
<label class="control-label" for="country"><?php _e('Country', 'infinity'); ?></label>
<div class="controls">
<?php ItemForm::country_select(); ?>
</div>
</div>
<?php
} else { ?>
<div class="control-group">
<label class="control-label" for="country"><?php _e('Country', 'infinity'); ?></label>
<div class="controls">
<?php ItemForm::country_select(osc_get_countries(), osc_user()); ?>
</div>
</div>
<?php
}
break;
} ?>
<!-- end country dropdown -->
<div class="control-group">
<label class="control-label" for="region"><?php _e('Περιοχή', 'infinity'); ?></label>
<div class="controls">
<!--<?php ItemForm::region_text(osc_user()); ?> --.
<!-- start region dropdown -->
<?php
if($edit){
ItemForm::region_select() ;
} else {
ItemForm::region_select(osc_get_regions(), osc_user()) ;
} ?>
<!-- End region dropdown -->
</div>
</div>
<div class="control-group">
<label class="control-label" for="city"><?php _e('Δήμος', 'infinity'); ?></label>
<div class="controls">
<!--<?php ItemForm::city_text(osc_user()); ?>-->
<!-- Start City dropdown -->
<?php if($edit){
ItemForm::city_select() ;
} else {
ItemForm::city_select(osc_get_cities(), osc_user()) ;
} ?>
<!-- end City dropdown -->
</div>
</div>
<div class="control-group">
<label class="control-label" for="cityArea"><?php _e('Περιοχή Δήμου', 'infinity'); ?></label>
<div class="controls">
<?php ItemForm::city_area_text(osc_user()); ?>
</div>
</div>
<div class="control-group">
<label class="control-label" for="address"><?php _e('Address', 'infinity'); ?></label>
<div class="controls">
<?php ItemForm::address_text(osc_user()); ?>
</div>
</div>
</div>
<!-- seller info -->
<?php if(!osc_is_web_user_logged_in() ) { ?>
<div class="box seller_info">
<h2><?php _e("Seller's information", 'infinity'); ?></h2>
<div class="control-group">
<label class="control-label" for="contactName"><?php _e('Name', 'infinity'); ?></label>
<div class="controls">
<?php ItemForm::contact_name_text(); ?>
</div>
</div>
<script type="text/javascript">
$('#alpha').on('keypress', function(ev) {
var keyCode = window.event ? ev.keyCode : ev.which;
//codes for 0-9
if (keyCode < 65 || keyCode > 122) {
//codes for backspace, delete, enter
if (keyCode != 0 && keyCode != 8 && keyCode != 13 && !ev.ctrlKey) {
ev.preventDefault();
}
}
});
</script>
<div class="control-group">
<label class="control-label" for="contactEmail"><?php _e('E-mail', 'infinity'); ?></label>
<div class="controls">
<?php ItemForm::contact_email_text(); ?>
</div>
</div>
<div class="control-group">
<label class="control-label" for="user_type"><?php _e('User type', 'infinity'); ?> *</label>
<div class="controls">
<?php UserForm::is_company_select() ; ?>
</div>
</div>
<div class="control-group">
<div class="controls checkbox">
<?php ItemForm::show_email_checkbox(); ?> <label for="showEmail"><?php _e('Show e-mail on the listing page', 'infinity'); ?></label>
</div>
</div>
</div>
<?php } ?>
<div class="control-group">
<?php osc_run_hook("new_item"); ?>
<?php if( osc_recaptcha_items_enabled() ) { ?>
<div class="controls">
<?php osc_show_recaptcha(); ?>
</div>
<?php }?>
<div class="controls">
<button type="submit" class="ui-button ui-button-middle ui-button-main"><?php if($edit) { _e("Update", 'infinity'); } else { _e("Publish", 'infinity'); } ?></button>
</div>
</div>
</fieldset>
</form>
</div>
</div> </div>
<div id="content" class="wrapper">
<div id="sidebar1">
<div class="eikona">
<img src="
http://4.bp.blogspot.com/-ivpmSICNM7s/VTfExlE2fTI/AAAAAAAAKwM/lpn5sHB7-pk/s1600/uni.png" alt="Image" class="img-responsive">
<h4>Ελέγχουμε όλες τις αγγελίες!</h4>
<div class="tick">
<p>Κάθε αγγελία ελέγχεται σύμφωνα με τους <a href="/index.php?page=page&id=23" data-toggle="modal" target="_blank" data-keyboard="true" tabindex="-1">κανόνες</a>, έτσι ώστε να μπορούμε να προσφέρουμε την καλύτερη δυνατή ποιότητα.</p>
</div>
</div>
</div>
</div>
<script type="text/javascript">
<?php if(osc_locale_thousands_sep()!='' || osc_locale_dec_point() != '') { ?>
$().ready(function(){
$("#price").blur(function(event) {
var price = $("#price").prop("value");
<?php if(osc_locale_thousands_sep()!='') { ?>
while(price.indexOf('<?php echo osc_esc_js(osc_locale_thousands_sep()); ?>')!=-1) {
price = price.replace('<?php echo osc_esc_js(osc_locale_thousands_sep()); ?>', '');
}
<?php }; ?>
<?php if(osc_locale_dec_point()!='') { ?>
var tmp = price.split('<?php echo osc_esc_js(osc_locale_dec_point())?>');
if(tmp.length>2) {
price = tmp[0] '<?php echo osc_esc_js(osc_locale_dec_point())?>' tmp[1];
}
<?php }; ?>
$("#price").prop("value", price);
});
});
/* Start dropdown locations javascript */
$('#countryId').change(function() {
$('#labelregionId').text('<?php _e("Select a region..."); ?>');
$("#region").before('<select name="cityId" id="cityId" ></select>');
$("#region").remove();
$("#regionId").html('<option selected value=""><?php _e("Select a region..."); ?></option>')
$('#labelcityId').text('<?php _e("Select a city..."); ?>');
$("#city").before('<select name="cityId" id="cityId" ></select>');
$("#city").remove();
$("#cityId").html('<option selected value=""><?php _e("Select a city..."); ?></option>')
});
$('#regionId').change(function() {
$('#labelcityId').text('<?php _e("Select a city..."); ?>');
$("#city").before('<select name="cityId" id="cityId" ></select>');
$("#city").remove();
$("#cityId").html('<option selected value=""><?php _e("Select a city..."); ?></option>')
});
/* End dropdown locations javascript */
<?php }; ?>
</script>
<?php osc_current_web_theme_path('footer.php'); ?>