User Activity

  • Posted a comment on ticket #433 on Meeting Room Booking System

    Do you mean like this? if (isset($id)) { if (!$is_admin) { // Make sure the technician name hasn't been altered by the user $custom_fields['technician_name'] = db()->query1("SELECT technician_name FROM $tbl_entry WHERE id=? LIMIT 1", array($id)); } // Editing an existing booking: get the room_id from the database (you can't // get it from $rooms because they are the new rooms) $target_room = db()->query1("SELECT room_id FROM $tbl_entry WHERE id=? LIMIT 1", array($id)); if ($target_room < 0) { //...

  • Created ticket #387 on Meeting Room Booking System

    Book same room and same time more than once and wait for approval

  • Posted a comment on ticket #433 on Meeting Room Booking System

    I search in edit_entry_handler.php but I couldn't find where I have to prevent users from showing the hidden input. and I logged in as a user and inspect the page and didn't find hidden input, I think it's working fine "what do you think?"

  • Posted a comment on ticket #433 on Meeting Room Booking System

    Great working fine, thanks mate and sorry for posting in the wrong section :) I found an extra bracket placed incorrectly in your last code if ($is_admin || ($key != 'technician_name')) { $fieldset->addElement(get_field_custom($key)); } else { if (isset($custom_fields[$key])) // here { $form->addHiddenInput(VAR_PREFIX . $key, $custom_fields[$key]); } }

  • Posted a comment on ticket #433 on Meeting Room Booking System

    this is the code I have added to the config file $sql = 'SELECT name FROM mrbs_users WHERE technician=1'; mysql_select_db($db_database); $retval = mysql_query( $sql, $ccoonn ); if(! $retval ) { die('Could not get data: ' . mysql_error()); } $technicians = array(); while($row = mysql_fetch_ASSOC($retval)) { $technicians [] = $row ; } $select_options['entry.technician_name'] = $technicians; mysql_close($ccoonn);

  • Created ticket #433 on Meeting Room Booking System

    complex custom field but facing problem

  • Posted a comment on ticket #429 on Meeting Room Booking System

    updated thanks a lot

  • Posted a comment on ticket #429 on Meeting Room Booking System

    mate i have faced the same problem with same field smallint(1) "checkbox" in Tables (rooms, users) could you help please its recall the data in view and edit pages but not inserting to database even in new rows

View All

Personal Data

Username:
bar6man
Joined:
2019-01-11 22:24:36

Projects

  • No projects to display.

Personal Tools

MongoDB Logo MongoDB