wdCalendar generar color aleatorio al crear evento

Iniciado por graphixx, Agosto 02, 2015, 04:24:42 AM

Tema anterior - Siguiente tema

0 Miembros y 1 Visitante están viendo este tema.

wdCalendar generar color aleatorio al guardar evento
Se edita el archivo "datafeed.php"
Dentro de la función "function addCalendar($st, $et, $sub, $ade){"
Código: text

    $sql = "insert into `jqcalendar` (`subject`, `starttime`, `endtime`, `color` ,`isalldayevent`) values ('"
      .mysql_real_escape_string($sub)."', '"
      .php2MySqlTime(js2PhpTime($st))."', '"
      .php2MySqlTime(js2PhpTime($et))."', '"
  .mt_rand(1,21)."', '"
      .mysql_real_escape_string($ade)."' )";


Queda así:
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
Mi Blog Personal
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login