kalender

Overzicht Reageren

Sponsored by: Vacatures door Monsterboard

.NET developer

Functie Als .NET ontwikkelaar start jij in een multidisciplinair team met 7 ontwikkelaars. Dit team is verdeeld onder Front-end ontwikkelaars en backend developers. De backend developers werken voornamelijk aan desktop applicaties in combinatie met backend systemen. Hier ga jij dus ook mee aan de slag! Hierbij wordt voornamelijk gebruik gemaakt van C# .NET, WPF, UWP, XAML en MVVM. WPF, UWP, .NET Core, Azure Devops en Entity Framework. WPF en UWP worden dan ook voornamelijk gebruikt voor de user interface van de desktop applicatie. Het development team is dan ook erg gedreven m.b.t. het ontwikkelen van vooruitstrevende en innovatieve horeca automatiseringsoplossingen.

Bekijk vacature »

Fasttrack learning & development voor Java dev

Wat je gaat doen: Wij zoeken enthousiaste en ambitieuze junior en medior ontwikkelaars die toe zijn aan de volgende stap in hun carrière. Wij helpen je op je pad naar senior ontwikkelaar door ons fasttrack learning en development programma. Na een kort en intensief programma ga jij aan de slag bij klanten van DPA. Daarnaast krijg je veel ruimte om je te ontwikkelen als persoon en als specialist. De eerste maand gaan we aan de slag om je certificeringen te behalen waaronder OCP (Oracle Certified Professional). Daarnaast nemen we een deepdive in Spring Boot. Ook laten we je kennismaken met

Bekijk vacature »

VB.NET developer

Functie Het development team waar jij in terecht komt bestaat uit twee ervaren software developers. De directeur/eigenaar is tevens één van deze developers. Jij werkt direct samen met jouw werkgever en kan dan ook veel kennis en ervaring bij dit bedrijf op doen. Als team zijn jullie verantwoordelijk voor de kantoorapplicatie die deze organisatie aanbied in een niche markt. Het team is op dit moment actief bezig met een migratie waarbij het eindstation eindigt in een C# .NET omgeving. Echter is een deel van de software al geschreven in C# .NET. Hierbij is gebruik gemaakt van C# .NET, CSS, HTML,

Bekijk vacature »

Laravel developer

Zie jij mogelijkheden om onze tooling technisch te verbeteren en uit te bouwen? Over Jobmatix Jobmatix is een innovatieve en internationale speler op het gebied van jobmarketing. Onze jobmarketing automation tool helpt organisaties bij het aantrekken van nieuw talent door vacatures digitaal, geautomatiseerd en op een efficiënte manier te adverteren en onder de aandacht te brengen bij de doelgroep op 25+ jobboards. Volledig performance-based, waarbij organisaties betalen op basis van cost per click of cost per applicant. Maandelijks wordt onze jobmarketing automation tool al gebruikt door vele directe werkgevers, intermediairs en mediabureaus, waaronder Picnic, Rijkswaterstaat, AdverOnline, Schiphol, DPA, Teleperformance en

Bekijk vacature »

Traineeship Full Stack .NET Developer

Dit ga je doen Start op 7 augustus 2023 bij de Experis Academy en ontwikkel jezelf tot een gewilde Full Stack .NET Developer. Maar hoe ziet het traineeship eruit en wat kun je verwachten? Periode 1 De eerste 3 maanden volg je fulltime, vanuit huis, een op maat gemaakte training in teamverband. Je leert belangrijke theorie en krijgt kennis van de benodigde vaardigheden en competenties die nodig zijn om de IT-arbeidsmarkt te betreden. Zowel zelfstandig als in teamverband voer je praktijkopdrachten op het gebied van front- en backend development uit. Wat er per week op het programma staat kun je

Bekijk vacature »

Front-end developer - working on software for arou

Functie They have recently started looking for an experienced Front-end (mobile/app) developer. Because of the short lines within the team, they are also looking for someone who can communicate with the service desk, sales and support for technical questions. You will join their IT team consisting of about 10 colleagues divided over two teams in rooms opposite each other. Half of these are involved in their front-end. You will work together with, among others, the Architect, 1 senior, 1 junior and there is a Team Leader. In terms of technology, they work with a unique tech-stack, particularly because of the

Bekijk vacature »

Frontend Developer Vue Nuxt HBO Javascript

Samengevat: Deze werkgever levert elke dag betere digitale gebruikerservaringen. Ben jij geschikt als frontend Developer? Heb je ervaring met Vue en Nuxt? Vaste baan: Front-End Developer HBO €3.100 - €4.600 Zij bieden opdrachtgevers een complete dienstverlening op gebied van ontwerpen en ontwikkelen van websites, zoekmachine optimalisatie, online adverteren, content marketing en conversie verbetering. Zij werken met een eigen ontwikkeld CMS. Bij bij hun werk je aan onze eigen bedrijfsapplicaties. Je ontwikkelt met ons de meest nieuwe software. Wij blinken uit als het gaat om de inzet van technologie. Deze werkgever staat open voor elke nieuwe trend. Onze systemen zijn groot

Bekijk vacature »

PHP/Symfony developer

Functieomschrijving Vanuit het hoofdkantoor in omgeving Bergen op Zoom ben je als PHP/Symfony Developer niet alleen bezig met software ontwikkeling. Je bent buiten ontwikkeling ook continu bezig met het zoeken naar nieuwe trends en ontwikkelingen die van waarde kunnen zijn voor de efficiëntie van software ontwikkeling. Techstack: PHP, Symfony & mySQL. Jouw takenpakket ziet er als volgt uit: Het ontwerpen en implementeren van webapplicaties met het Symfony-framework; Het testen van ontwikkelde applicaties om te zorgen dat ze goed functioneren en voldoen aan de eisen van de klanten; Het schrijven van een schone en efficiënte code volgens het Symfony framework; Onderhouden

Bekijk vacature »

.NET developer

Klaar voor een nieuwe uitdaging? Welke technologieën gaan schuil achter de dagelijkse energievoorziening? Als senior .NET developer bij Kenter maak jij samen met je team het verschil, zowel voor de interne organisatie als voor eindklanten. Samen bouwen jullie aan innovatieve dienstverlening met behulp van de nieuwste technologieën en tools. Het is een functie met veel vrijheid, goede arbeidsvoorwaarden én je draagt jouw steentje bij aan de energietransitie. Klinkt dit als iets voor jou? Lees dan verder of solliciteer direct! Wat ga je doen als senior .NET developer? Als senior .NET developer bij Kenter (onderdeel van Alliander) ben je van onschatbare

Bekijk vacature »

Full stack developer Python, React

Functie Jij als full stack developer komt binnen onze Technology afdeling te werken. Deze bestaat momenteel uit 15 man. De stack waarmee wij werken is voornamelijk Python, Javascript, React en GraphQL. Binnen deze afdeling wordt er met multidisciplinaire teams gewerkt aan verschillende projecten. Projecten duren vaak langer dan 3 maanden en je bent van begin tot eind vaak betrokken. Naast dat je als full stack ontwikkelaar aan de slag gaat ben je ook Consultant. Dit betekent dat je ook klantcontact hebt in je rol en werkshops geeft. De verhouding tussen deze werkzaamheden zijn ongeveer 70% development en 30% consultancy. Een

Bekijk vacature »

Applicatie ontwikkelaar

Functie omschrijving Zelfstandige applicatie ontwikkelaar gezocht voor familiair bedrijf in omgeving Barendrecht! Ben jij op zoek naar een nieuwe uitdaging en zoek jij een informele werkgever waar je zelfstandig kunt werken binnen een leuk IT team, lees dan snel verder want wie weet zijn wij op zoek naar jou! Binnen deze rol houdt jij je met het volgende bezig: Onderhouden en ontwikkelen van de IT systemen; Opzetten van Azure Cloud systemen, denk aan interfaces, hardware op de Cloud, webportalen of BI functies; Werken aan scripts binnen verschillende software applicaties, denk aan ERP en CAD; Ontwikkelen en implementeren van MS PowerApps

Bekijk vacature »

C#.NET Developer

Dit ga je doen Ontwikkelen van de Back-end in .NET6 / C# en WebAPI (Focus);) Ontwikkelen van de Front-End in Nodje.js en Angular (secundair); Opstellen van een technisch ontwerp; Testen, documenteren en implementeren van de nieuwe applicatie; Verzorgen van de nazorg, na de implementatie; Het oplossen van bugs en incidenten. Hier ga je werken Als C#.NET Developer binnen deze organisatie kan jij het verschil maken. Zij werken momenteel nog met programmatuur die is ontwikkeld in C++. Hiervan gaan zij afscheid nemen zodra alle nieuwe software in C#.NET geschreven is. Een grootschalig en langdurig project. Voor hen is deze software van

Bekijk vacature »

Back End Developer .NET

Dit ga je doen Ontwikkelen in C# .NET en werken aan nieuwbouw, uitbouw en onderhoud van de software (die communiceren met 68.000 sensoren, waardoor er meerdere miljoenen berichten per uur verwerkt worden); Samenwerken in Scrum Teams; Meewerken aan verschillende, uitdagende projecten; Werken met nieuwe technologieën en vrijheid krijgen om jezelf te ontwikkelen en door te groeien. Hier ga je werken Je komt als Developer te werken bij een organisatie die gespecialiseerd is in software die real-time wordt gebruikt. De software constateert waar werk moet worden uitgevoerd en de chauffeurs worden met een andere applicatie hierop geattendeerd. Ook wordt er direct

Bekijk vacature »

PHP ontwikkelaar

Functie Jij komt te werken in een development team van 9 man. Het grootste deel doet back end development en daarnaast is er 1 teamlead en 1 tester in het team. Dit Agile team is van groots belang voor de organisatie omdat zij voornamelijk alle eigen systemen in-house ontwikkelen. Naast het door ontwikkelen van het bestaande platform en de software die daarbij komt kijken, zul jij je ook bezighouden met het realiseren en opzetten van nieuwe projecten binnen het bedrijf. Je staat nauw met de klant in contact om zo hun wensen zo goed mogelijk te kunnen realiseren. Daarnaast ontwikkel

Bekijk vacature »

Informeel bureau zoekt Senior PHP developer

Functie Als senior PHP developer neem je het voortouw in ontwikkeltrajecten en ben je in staat werk uit te leggen aan collega’s om zo je kennis met hen te delen. Je deinst niet terug voor ingewikkelde projecten. Deze zie jij alleen maar als uit uitdaging. Je werkt doorlopend aan klantcases (en hierdoor je klant echt leert kennen), maar toch ben je afwisselend bezig. Dit alles in een vrije en ontspannen werksfeer, met een team van gelijkgestemde. Binnen de development teams werken ze met o.a. PHP, Laravel, React, Node, Elastic, Amazon AWS, JIRA, Solid, Domain-driven-design, Doctrine, Redis, docker, Kubernetes, CI, PHP

Bekijk vacature »
George mendel

george mendel

15/02/2012 13:50:27
Quote Anchor link
Dag allemaal

ik krijg de volgende foutmelding bij mijn script als ik het run:

Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\cal\agenda-calendar.php on line 15

Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\cal\agenda-calendar.php on line 301

het gaat hier om de volgende script:
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
<?
$Host
=           "localhost";
$User =           "";
$PassWord =       "";
$DataBaseName =   "";
$TableName =      "agenda";

mysql_connect($Host, $User, $PassWord);
mysql_select_db($DataBaseName);

//This below will create your table for you if it does not exist.
//Feel free to comment it out once the table is created.

$Tables = mysql_query("show tables like '" . $TableName . "'");

if(mysql_fetch_row($Tables) === false)
  {

  $create = "create table " . $TableName .
            "(" .
            "id int primary key auto_increment, " .
            "text text, " .
            "day int, " .
            "month int, " .
            "year int " .
            ")";
  
  mysql_query($create);
  }

        
$Entered_UserName = "";
$Entered_PassWord = "";

if(isset($HTTP_COOKIE_VARS["UserName"]) &&
   isset($HTTP_COOKIE_VARS["PassWord"]))
  {

  $Entered_UserName = $HTTP_COOKIE_VARS["UserName"];
  $Entered_PassWord = $HTTP_COOKIE_VARS["PassWord"];
  }


$isLogged = true;
            
if($Entered_UserName != $User || $Entered_PassWord != $PassWord)                      
   $isLogged = false;
  
//Execute MySQL queries if someone is logged in.
if($isLogged == true)
  {

  if(param("save") != "")  
    {

    for($week_day = 0; $week_day <= 7; $week_day++)
       {

       $day = param("day" . $week_day);
       $month = param("month" . $week_day);
       $year = param("year" . $week_day);
       $text = trim(param("text" . $week_day));
      
       $Select = "select count(id) from " . $TableName . " where day = " . $day .
                 " and month = " . $month .
                 " and year = " . $year;
                
       $entries = mysql_query($Select);
       $entry = mysql_fetch_array($entries);
      
       if($entry[0] < 1)
         {

         if($text != "")
           {

           $Insert = "insert into " . $TableName . " (text, day, month, year) values ('" . $text . "', " .
                     $day . ", " . $month . ", " . $year . ")";
           //If there is no entry in the table for that day, create it.                    
           mysql_query($Insert);
           }
         }

       else
         {
         if($text != "")
           {

           $Update = "update " . $TableName . " set text ='" . $text . "' where day = " . $day .
                     " and month = " . $month . " and year = " . $year;
                      
           mysql_query($Update);
           }

         else
           {
           $Delete = "delete from " . $TableName . " where day = " . $day .
                     " and month = " . $month . " and year = " . $year;
           //No point in keeping empty records in the table.          
           mysql_query($Delete);
           }
         }      
       }
    }
  }

function
schedule($date)
         {

         //If no parameter is passed use the current date.
         if($date == null)
            $date = getDate();
            
         $day = $date["mday"];
         $week_day = $date["wday"];
         $month = $date["mon"];
         $month_name = $date["month"];        
         $year = $date["year"];
        
         $today = getDate(mktime(0, 0, 0, $month, $day, $year));
        
         $sunday = $day - $week_day;
         $saturday = $day + (6 - $week_day);
                                                              
         $schedule_html = "<table height=\"100%\" width=\"100%\" cellspacing=\"20\">\n";
        
         $schedule_html .= "<tr><td align=\"right\" valign=\"top\">\n";
        
         global $previous_month;
         global $this_month;
         global $next_month;
        
         $previous_month = getDate(mktime(0, 0, 0, $month - 1, 1, $year));
         $this_month = getDate(mktime(0, 0, 0, $month, 1, $year));
         $next_month = getDate(mktime(0, 0, 0, $month + 1, 1, $year));
        
         $first_week_day = $this_month["wday"];
         $days_in_this_month = round(($next_month[0] - $this_month[0]) / (60 * 60 * 24));
                          
         $schedule_html .= "<table>\n";
        
         $schedule_html .= "<tr><td align=\"center\" class=\"calendar_cell\">" .
                           "<a class=\"calendar_date\" " .
                           "href=\"agenda-calendar.php?month=" . $previous_month["mon"] . "&year=" . $previous_month["year"] . "\"><</a></td>\n";
        
         $schedule_html .= "<td colspan=\"5\" align=\"center\" class=\"calendar_cell\">" .
                           "<font class=\"calendar_month\">" . $month_name . " " . $year . "</font></td>\n";
                          
         $schedule_html .= "<td align=\"center\" class=\"calendar_cell\">" .
                           "<a class=\"calendar_date\" " .
                           "href=\"agenda-calendar.php?month=" . $next_month["mon"] . "&year=" . $next_month["year"] . "\">></a></td></tr>\n";
                          
         $schedule_html .= "<tr>\n";
          
         //Fill the first week of the month with the appropriate number of blanks.      
         for($week_day = 0; $week_day < $first_week_day; $week_day++)
            {

            $schedule_html .= "<td class=\"calendar_cell\">&nbsp;</td>";  
            }

            
         $week_day = $first_week_day;
         for($day_counter = 1; $day_counter <= $days_in_this_month; $day_counter++)
            {

            $week_day %= 7;
            
            if($week_day == 0)
               $schedule_html .= "</tr><tr>\n";
            
            //Do something different for the current day.
            if($day == $day_counter)
               $schedule_html .= "<td class=\"calendar_current_cell\" align=\"center\"><font class=\"calendar_current_date\">" . $day_counter . "</font></td>\n";
            else
               $schedule_html .= "<td align=\"center\" class=\"calendar_cell\">&nbsp;" .
                                 "<a class=\"calendar_date\" href=\"agenda-calendar.php?day=" . $day_counter . "&month=" . $month . "&year=" . $year . "\">" .
                                 $day_counter . "</a>&nbsp;</td>\n";
            
            $week_day++;
            }

            
         $schedule_html .= "</tr>\n";
         $schedule_html .= "</table>\n";
        
         $schedule_html .= "<br /><br />\n";
        
         //Login.
         global $isLogged;
        
         $schedule_html .= "<table align=\"right\">\n";                  
        
         if($isLogged == true)
           {
          
           $schedule_html .= "<tr>";
           $schedule_html .= "<td>";
           $schedule_html .= "<input type=\"hidden\" name=\"save\" value=\"yes\" />";
           $schedule_html .= "<input type=\"button\" value=\"log out\" class=\"calendar_cell\" ";
           $schedule_html .= "onclick=\"clearCookie('UserName');";
           $schedule_html .= "clearCookie('PassWord');";
           $schedule_html .= "document.EmptyForm.submit();\" />";          
           $schedule_html .= "</td>";
           $schedule_html .= "<td width=\"33%\"></td>";          
           $schedule_html .= "<td>";
           $schedule_html .= "<input type=\"button\" value=\"save\" class=\"calendar_cell\" ";
           $schedule_html .= "onclick=\"document.save.submit();\" />";
           $schedule_html .= "</td>";
           $schedule_html .= "</tr>\n";
           }

         else
           {
           $schedule_html .= "<form name=\"login\">";
           $schedule_html .= "<tr>";
           $schedule_html .= "<td align=\"right\">";
           $schedule_html .= "<input type=\"text\" name=\"UserName\" class=\"calendar_cell\" />";
           $schedule_html .= "</td>";
           $schedule_html .= "</tr>";
           $schedule_html .= "<tr>";
           $schedule_html .= "<td align=\"right\">";
           $schedule_html .= "<input type=\"password\" name=\"PassWord\" class=\"calendar_cell\" />";
           $schedule_html .= "</td>";
           $schedule_html .= "</tr>";
           $schedule_html .= "<tr>";
           $schedule_html .= "<td align=\"right\">";
           $schedule_html .= "<input type=\"button\" value=\"log in\" class=\"calendar_cell\" ";
           $schedule_html .= "onclick=\"setCookie('UserName', document.login.UserName.value);";
           $schedule_html .= "setCookie('PassWord', document.login.PassWord.value);";
           $schedule_html .= "document.EmptyForm.submit();\" />";          
           $schedule_html .= "</td>";
           $schedule_html .= "</tr>";
           $schedule_html .= "</form>\n";          
           }

          
         $schedule_html .= "<form name=\"EmptyForm\" method=\"post\">\n";
         $schedule_html .= "</form>\n";
                              
         $schedule_html .= "</table>\n";
        
         $schedule_html .= "</td>\n";
        
         $schedule_html .= "<td valign=\"top\" width=\"100%\"><table width=\"100%\" cellpadding=\"10\">\n";                  
        
         if($isLogged == true)
           {

           $schedule_html .= "<form name=\"save\" method=\"post\">\n";
           $schedule_html .= "<input type=\"hidden\" name=\"save\" value=\"save\">\n";
           }

            
        
         for($index = $sunday; $index <= $saturday; $index++)
            {

            $date = getDate(mktime(0, 0, 0, $month, $index, $year));
            
            $schedule_date = "schedule_date";
            $schedule_entry = "schedule_entry";
            if(($month > $date["mon"] && $year == $date["year"]) || $year > $date["year"])
              {

              $schedule_date = "schedule_date_previous";
              $schedule_entry = "schedule_entry_previous";
              }

            if(($month < $date["mon"] && $year == $date["year"]) || $year < $date["year"])
              {

              $schedule_date = "schedule_date_next";
              $schedule_entry = "schedule_entry_next";
              }

              
            $schedule_html .= "<tr><td align=\"right\" class=\"" . $schedule_date . "\">";                        
            
            $schedule_html .= $date["weekday"] . " " .
                              $date["month"] . " " .
                              $date["mday"] . ", " .
                              $date["year"] . "\n";
            
            $schedule_html .= "</br>\n";
            
            $schedule_text = getSchedule($date["mday"], $date["mon"], $date["year"]);                        
              
            $readonly = "readonly";
            if($isLogged == true)
               $readonly = "";
            
            if($isLogged == true)
              {

              $schedule_html .= "<input type=\"hidden\" name=\"day" . $date["wday"] . "\" value=\"" . $date["mday"] . "\" />\n";
              $schedule_html .= "<input type=\"hidden\" name=\"month" . $date["wday"] . "\" value=\"" . $date["mon"] . "\" />\n";
              $schedule_html .= "<input type=\"hidden\" name=\"year" . $date["wday"] . "\" value=\"" . $date["year"] . "\" />\n";
              }

            
            $schedule_html .= "<textarea wrap=\"off\" name=\"text" . $date["wday"] . "\" class=\"" .
                              $schedule_entry . "\" style=\"width:100%;overflow:auto;\" rows=\"" .
                              rows($schedule_text) . "\" " . $readonly . ">\n" .
                              $schedule_text . "</textarea>\n";
            
            $schedule_html .= "</td></tr>\n";
            }

        
         if($isLogged == true)
            $schedule_html .= "</form>\n";
        
         $schedule_html .= "</table></td></tr>\n";
        
         $schedule_html .= "</table>\n";
                  
         return($schedule_html);
         }
 
function
getSchedule($day, $month, $year)
         {

         global $TableName;
        
         $Select = "select text from " . $TableName . " where " .
                   "day = " . $day . " and " .
                   "month = " . $month . " and " .
                   "year = " . $year;
        
         $Schedule = mysql_query($Select);
        
         if($Text = mysql_fetch_assoc($Schedule))
           {

           return($Text["text"]);
           }

         else
           {
           return("");
           }
         }
        
        
function
rows($text)
         {

         return(substr_count($text, "\n") + 1);
         }
        
function
param($Name)
         {

         global $HTTP_GET_VARS;
         global $HTTP_POST_VARS;        

         if(isset($HTTP_GET_VARS[$Name]))
            return($HTTP_GET_VARS[$Name]);

         if(isset($HTTP_POST_VARS[$Name]))
            return($HTTP_POST_VARS[$Name]);
            
         return("");        
         }

        
$day = param("day");
$month = param("month");
$year = param("year");

$date = null;

if($year != "")
  {

  if($day == "")
     $day = 1;
  if($month == "")
     $month = 1;
    
  $date = getDate(mktime(0, 0, 0, $month, $day, $year));
  }


$agenda = schedule($date);
  
$previous_month;
$this_month;
$next_month;

$body = Array
(
"background-color:eeeeff;",
"background-color:ffddee;",
"background-color:dddddd;",
"background-color:9999cc;",
"background-color:ccff99;",
"background-color:ffdd77;",
"background-color:ffee00;",
"background-color:eecc55;",
"background-color:dd9900;",
"background-color:000000;",
"background-color:aa7700;",
"background-color:ddffdd;"
);

$calendar_month = Array
(
"color:000000; font-weight:bold;",
"color:ff0000; font-weight:bold;",
"color:00ff00; font-weight:bold;",
"color:000099; font-weight:bold;",
"color:000000; font-weight:bold;",
"color:ff8800; font-weight:bold;",
"color:6666ff; font-weight:bold;",
"color:ff6600; font-weight:bold;",
"color:000000; font-weight:bold;",
"color:9900ee; font-weight:bold;",
"color:884400; font-weight:bold;",
"color:55dd55; font-weight:bold;"
);
  
$calendar_cell = Array
(
"background-color:ffffff; border:1; border-style:solid; border-color:000000; color:000000;",
"background-color:eeeeff; border:1; border-style:solid; border-color:0000ff; color:ff0000;",
"background-color:999999; border:1; border-style:solid; border-color:550000; color:ffffff;",
"background-color:9999ff; border:1; border-style:solid; border-color:550000; color:0000dd;",
"background-color:ffdd77; border:1; border-style:solid; border-color:550000; color:000000;",
"background-color:99ff99; border:2; border-style:solid; border-color:ff8800; color:ff8800;",
"background-color:ffcccc; border:2; border-style:solid; border-color:6666ff; color:6666ff;",
"background-color:eecc55; border:2; border-style:solid; border-color:ee9900; color:ff6600;",
"background-color:ffcc00; border:2; border-style:solid; border-color:00aa00; color:000000;",
"background-color:dd9900; border:2; border-style:solid; border-color:9900ee; color:9900ee;",
"background-color:ffffff; border:2; border-style:solid; border-color:884400; color:884400;",
"background-color:dd5555; border:2; border-style:solid; border-color:dd5555; color:55dd55;"
);

$calendar_current_cell = Array
(
"background-color:eeeeff; border:1; border-style:solid; border-color:0000ff;",
"background-color:000000;",
"background-color:dddddd; border:2; border-style:solid; border-color:009900;",
"background-color:9999ff; border:1; border-style:solid; border-color:000000;",
"background-color:ffff00; border:1; border-style:solid; border-color:000000;",
"background-color:ffdd77;",
"background-color:6666ff; border:2; border-style:solid; border-color:ffcccc;",
"background-color:eecc55;",
"background-color:dd9900;",
"background-color:000000; border:2; border-style:solid; border-color:dd9900;",
"background-color:884400; border:2; border-style:solid; border-color:884400;",
"background-color:ddffdd; border:2; border-style:solid; border-color:dd5555;"
);

$calendar_date = Array
(
"background-color:ffffff; color:000000; text-decoration:none;",
"background-color:eeeeff; color:ff0000; text-decoration:none;",
"background-color:999999; color:ffffff; text-decoration:none;",
"background-color:9999ff; color:0000dd; text-decoration:none;",
"background-color:ffdd77; color:000000; text-decoration:none;",
"background-color:99ff99; color:ff8800; text-decoration:none;",
"background-color:ffcccc; color:6666ff; text-decoration:none;",
"background-color:eecc55; color:ff6600; text-decoration:none;",
"background-color:ffcc00; color:000000; text-decoration:none;",
"background-color:dd9900; color:6600ee; text-decoration:none;",
"background-color:ffffff; color:884400; text-decoration:none;",
"background-color:dd5555; color:55dd55; text-decoration:none;"
);

$calendar_current_date = Array
(
"background-color:eeeeff; color:000000; text-decoration:none; font-weight:bold;",
"background-color:000000; color:ffeeee; text-decoration:none; font-weight:bold;",
"background-color:dddddd; color:000000; text-decoration:none; font-weight:bold;",
"background-color:9999ff; color:000099; text-decoration:none; font-weight:bold;",
"background-color:ffff00; color:000000; text-decoration:none; font-weight:bold;",
"background-color:ffdd77; color:ff8800; text-decoration:none; font-weight:bold;",
"background-color:6666ff; color:ffcccc; text-decoration:none; font-weight:bold;",
"background-color:eecc55; color:ff6600; text-decoration:none; font-weight:bold;",
"background-color:dd9900; color:000000; text-decoration:none; font-weight:bold;",
"background-color:000000; color:dd9900; text-decoration:none; font-weight:bold;",
"background-color:884400; color:ffffff; text-decoration:none; font-weight:bold;",
"background-color:ddffdd; color:dd5555; text-decoration:none; font-weight:bold;"
);

$schedule_date = Array
(
"color:000000; font-weight:bold; background-color:ffffff; border:1; border-style:solid; border-color:000000;",
"color:0000ff; font-weight:bold; background-color:ffffff; border:2; border-style:solid; border-color:ff0000;",
"color:ffffff; font-weight:bold; background-color:999999; border:1; border-style:solid; border-color:000000;",
"color:000099; font-weight:bold; background-color:9999ff; border:1; border-style:solid; border-color:550000;",
"color:000000; font-weight:bold; background-color:ffdddd; border:1; border-style:solid; border-color:550000;",
"color:ff8800; font-weight:bold; background-color:99ff99; border:2; border-style:solid; border-color:ff8800;",
"color:6666ff; font-weight:bold; background-color:ffcccc; border:2; border-style:solid; border-color:6666ff;",
"color:ff6600; font-weight:bold; background-color:eecc55; border:2; border-style:solid; border-color:ee9900;",
"color:000000; font-weight:bold; background-color:00aa00; border:2; border-style:solid; border-color:ffcc00;",
"color:dd9900; font-weight:bold; background-color:000000; border:2; border-style:solid; border-color:9900ee;",
"color:884400; font-weight:bold; background-color:ffffff; border:2; border-style:solid; border-color:884400;",
"color:dd5555; font-weight:bold; background-color:ddffdd; border:2; border-style:solid; border-color:55dd55;"
);

$schedule_entry = Array
(
"color:000000; background-color:ffffff; border-style:none;",
"color:000000; background-color:ffffff; border-style:none;",
"color:ffffff; background-color:999999; border-style:none;",
"color:000099; background-color:9999ff; border-style:none;",
"color:000000; background-color:ffdddd; border-style:none;",
"color:ff8800; background-color:99ff99; border-style:none;",
"color:6666ff; background-color:ffcccc; border-style:none;",
"color:ff6600; background-color:eecc55; border-style:none;",
"color:000000; background-color:00aa00; border-style:none;",
"color:dd9900; background-color:000000; border-style:none;",
"color:884400; background-color:ffffff; border-style:none;",
"color:dd5555; background-color:ddffdd; border-style:none;"
);
?>


<html>
<head>
<title>agenda calendar</title>

<style>
body
{
<?= $body[$this_month["mon"] - 1] ?>
}

.calendar_month
{
<?= $calendar_month[$this_month["mon"] - 1] ?>
}

.calendar_cell
{
<?= $calendar_cell[$this_month["mon"] - 1] ?>
}

.calendar_current_cell
{
<?= $calendar_current_cell[$this_month["mon"] - 1] ?>
}

.calendar_date
{
<?= $calendar_date[$this_month["mon"] - 1] ?>
}

.calendar_current_date
{
<?= $calendar_current_date[$this_month["mon"] - 1] ?>
}

.schedule_date_previous
{
<?= $schedule_date[$previous_month["mon"] - 1] ?>
}

.schedule_date
{
<?= $schedule_date[$this_month["mon"] - 1] ?>
}

.schedule_date_next
{
<?= $schedule_date[$next_month["mon"] - 1] ?>
}

.schedule_entry_previous
{
<?= $schedule_entry[$previous_month["mon"] - 1] ?>
}

.schedule_entry
{
<?= $schedule_entry[$this_month["mon"] - 1] ?>
}

.schedule_entry_next
{
<?= $schedule_entry[$next_month["mon"] - 1] ?>
}
</style>

<script>
function setCookie(name, value)
         {
         //If name is the empty string, it places a ; at the beginning
         //of document.cookie, causing clearCookies() to malfunction.
         if(name != '')
            document.cookie = name + '=' + value;
         }
        
function clearCookie(name)
         {
         expires = new Date();
         expires.setYear(expires.getYear() - 1);

         document.cookie = name + '=null' + '; expires=' + expires;
         }

</script>
</head>

<body>
<?= $agenda ?>
</body>
</html>


Graag in het vervolg enkel relevante code plaatsen.[/modedit]
Gewijzigd op 15/02/2012 14:22:15 door Bas IJzelendoorn
 
PHP hulp

PHP hulp

04/05/2024 01:28:33
 
- SanThe -

- SanThe -

15/02/2012 13:53:13
Quote Anchor link
Alléén graag relevante code en geen compleet script.
Je query is gewoon mislukt,
Bouw nette foutafhandeling in.
http://www.phphulp.nl/php/tutorial/data-verwerking/foutafhandeling-query-sql/735/
 
Reshad F

Reshad F

15/02/2012 14:01:16
Quote Anchor link
je query is mislukt soals SanThe aangeeft, het wordt niet als een 1 parameter terugverzonden dus je mist ergens een haakje komma of iets dergelijks, even phpmyadmin openen en het daar runnen zie je gelijk wat er fout is of je query even echoen en dat in je phpmyadmin uitvoeren ;)
 
Obelix Idefix

Obelix Idefix

15/02/2012 14:21:04
Quote Anchor link
Gewoon goede foutafhandeling in bouwen dus ;-)
 
George mendel

george mendel

15/02/2012 14:47:28
Quote Anchor link
laat maar hij doet het al:P, ik gebruikte een tabelnaam die al bestond:D
 



Overzicht Reageren

 
 

Om de gebruiksvriendelijkheid van onze website en diensten te optimaliseren maken wij gebruik van cookies. Deze cookies gebruiken wij voor functionaliteiten, analytische gegevens en marketing doeleinden. U vindt meer informatie in onze privacy statement.