Plugin Directory

Changeset 1910059


Ignore:
Timestamp:
07/16/2018 09:14:21 PM (8 years ago)
Author:
setriosoft
Message:

BizCaledar Web 1.0.2.0

Location:
bizcalendar-web
Files:
133 added
5 edited

Legend:

Unmodified
Added
Removed
  • bizcalendar-web/trunk/admin/bizcalendar-admin.php

    r1901838 r1910059  
    111111    $autoSelectPhysician = (bool)get_option('setrio_bizcal_autosel_physician', true);
    112112    $maxAvailabilities = (int)get_option('setrio_bizcal_max_availabilities', 0);
     113    $minDaysToAppointment = (int)get_option('setrio_bizcal_min_days_to_appointment', 0);
    113114    $appointmentEmailTo = get_option('setrio_bizcal_appointment_email_to');
    114115    $appointmentEmailSubject = get_option('setrio_bizcal_appointment_email_subject');
     
    325326                        <br />
    326327                        <input type="text" class="regular-text" name="setrio-bizcal-max-availabilities" value="<?=$maxAvailabilities?>" />
     328                    </p>
     329                </div>
     330                <div class="options">
     331                    <p>
     332                        <label>Număr de zile până la prima zi de programare disponibilă</label>
     333                        <br />
     334                        <input type="text" class="regular-text" name="setrio-bizcal-min-days-to-appointment" value="<?=$minDaysToAppointment?>" />
    327335                    </p>
    328336                </div>
     
    518526                $autoSelectPhysician = (isset($_POST['setrio-bizcal-autosel-physician']) && ($_POST['setrio-bizcal-autosel-physician'] == 1)) ? 1 : 0;
    519527                $maxAvailabilities = (int)sanitize_text_field($_POST['setrio-bizcal-max-availabilities']);
     528                $minDaysToAppointment= (int)sanitize_text_field($_POST['setrio-bizcal-min-days-to-appointment']);
    520529                update_option('setrio_bizcal_all_caps', $allCaps);
    521530                update_option('setrio_bizcal_autosel_speciality', $autoSelectMedicalSpeciality);
     
    524533                update_option('setrio_bizcal_autosel_physician', $autoSelectPhysician);
    525534                update_option('setrio_bizcal_max_availabilities', $maxAvailabilities);
     535                update_option('setrio_bizcal_min_days_to_appointment', $minDaysToAppointment);
    526536            }
    527537            elseif ($active_tab == "email")
  • bizcalendar-web/trunk/bizcalendar.php

    r1901838 r1910059  
    22/**
    33 * @package BizCalendarWeb
    4  * @version 1.0.1.5
     4 * @version 1.0.2.0
    55 */
    66/*
     
    99Description: Modul de programări online pentru clinicile medicale care folosesc BizMedica / Online appointments form for medical clinics using BizMedica software
    1010Author: Setrio Soft
    11 Version: 1.0.1.5
     11Version: 1.0.2.0
    1212Author URI: http://www.setrio.ro/
    1313*/
  • bizcalendar-web/trunk/js/bizcalendar.js

    r1901838 r1910059  
    15131513function doOnDateSelect(dateText, obj)
    15141514{
    1515     doOnDateDraw(0, 0, null);
    1516 
    15171515    bizcalAppointmentDateSelected = true;
    15181516   
    15191517    if ( (!isFormWithPopups()) && (!bizcalDisableAutoRefreshAppointmentAvailability) )
    15201518        checkAvailability(false);
    1521 }
    1522 
    1523 function doOnDateDraw(year, month, obj)
    1524 {
    1525     jQuery("#bizcal-sel-date").find("td").removeClass("ui-datepicker-days-cell-over");
    1526     jQuery("#bizcal-sel-date").find("td").removeClass("ui-datepicker-current-day");
    1527     jQuery("#bizcal-sel-date").find("td").removeClass("ui-datepicker-today");
    1528     jQuery("#bizcal-sel-date").find("a").removeClass("ui-state-highlight");
    1529     jQuery("#bizcal-sel-date").find("a").removeClass("ui-state-active");
    1530     jQuery("#bizcal-sel-date").find("a").removeClass("ui-state-hover");
    15311519}
    15321520
     
    15731561        gotoCurrent: true
    15741562        }, $.datepicker.regional['ro']));
    1575     $("#bizcal-sel-date").datepicker("option", "dateFormat", "yyyymmdd");
    1576     $("#bizcal-sel-date").datepicker("option", "minDate", 0);
    1577     $("#bizcal-sel-date").datepicker("setDate", new Date());
    1578     $("#bizcal-sel-date").datepicker("refresh");
    1579     $("#bizcal-sel-date").datepicker("setDate", null);
    1580     $("#bizcal-sel-date").datepicker("refresh");
    1581 
    1582     $("#bizcal-sel-date").find("a").removeClass("ui-state-highlight");
    1583     $("#bizcal-sel-date").find("a").removeClass("ui-state-active");
    1584     $("#bizcal-sel-date").datepicker({ onSelect: doOnDateSelect, onChangeMonthYear: doOnDateDraw }).ready(function(){
    1585         doOnDateDraw(0, 0, null);
    1586     });
     1563
     1564    $("#bizcal-sel-date").datepicker({
     1565        onSelect: doOnDateSelect,
     1566        dateFormat: "yyyymmdd",
     1567        defaultDate: +setrio_bizcal_ajax.min_days_to_appointment,
     1568        minDate: setrio_bizcal_ajax.min_days_to_appointment,
     1569        }).ready(function(){
     1570            bizcalAppointmentDateSelected = true;
     1571        });
    15871572
    15881573    $("#bizcal-sel-time").selectable();
  • bizcalendar-web/trunk/main.php

    r1901838 r1910059  
    5151    $showPhysicianDetails = (bool)get_option('setrio_bizcal_show_physician_details', false);
    5252    $maxAvailabilities = (int)get_option('setrio_bizcal_max_availabilities', 0);
     53    $minDaysToAppointment = (int)get_option('setrio_bizcal_min_days_to_appointment', 0);
    5354   
    5455    wp_localize_script('setrio-bizcalendar', 'setrio_bizcal_ajax', array(
     
    6465        'autosel_physician' => $autoSelectPhysician,
    6566        'max_availabilities' => $maxAvailabilities,
     67        'min_days_to_appointment' => $minDaysToAppointment,
    6668        'msg_error' => setrio_bizcal_message('msgError'),
    6769        'msg_warning' => setrio_bizcal_message('msgWarning'),
  • bizcalendar-web/trunk/readme.txt

    r1901839 r1910059  
    2727== Installation ==
    2828
     29= Romana =
     30
     311. Copiați directorul `setrio-bizcalendar` în locația `/wp-content/plugins/`
     322. Activați modulul prin intermediul meniului "Module" din WordPress
     333. Folosiți opțiunea de meniu "BizCalendar" pentru a configura opțiunile modulului
     344. Adăugați codul [bizcal] pe pagina sau postarea pe care doriți să apară formularul de programări
     35
     36= English =
     37
    29381. Upload `setrio-bizcalendar` folder to the `/wp-content/plugins/` directory
    30392. Activate the plugin through the 'Plugins' menu in WordPress
    31403. Use "BizCalendar" admin menu option to configure the plugin
    32 3. Add the shortcode [bizcal] on the desired page/post
     414. Add the shortcode [bizcal] on the desired page/post
    3342
    3443== Frequently asked questions ==
     
    4352== Changelog ==
    4453
     54= 1.0.2.0 =
     55  RO 
     56    * s-a adăugat posibilitatea de a defini un număr minim de zile până la prima programare disponibilă în site
     57  EN
     58    * we added the posibility to define a minimum period (in days) until the first appointment interval displayed on the form
    4559= 1.0.1.5 =
    4660  * small bugfixes
     
    6276== Upgrade Notice ==
    6377
     78= 1.0.2.0 =
     79  RO 
     80    * În această versiune s-a adăugat posibilitatea de a defini un număr minim de zile până la prima programare disponibilă în site,
     81    faceți actualizarea doar dacă aveți nevoie de această facilitate
     82  EN
     83    * In this version we added the posibility to define a minimum period (in days) until the first appointment interval displayed on the form,
     84    please update if you require this functionality
    6485= 1.0.1.5 =
    6586This version fixes a number of security issues, you should upgrade as soon as possible
Note: See TracChangeset for help on using the changeset viewer.