[Care2002-developers] Need some help inm Calander

7 views
Skip to first unread message

copyright

unread,
Oct 25, 2008, 2:57:53 PM10/25/08
to Care2X
Well i was placing a calander in my module but stuck with the files it
required to insert. When i click that icon of calander the calander
doesnot display. Though i have include script file as
<script language="javascript" src="../../js/dtpick_care2x.js"></
script>
and also used its corresponding function named as

javascript:show_calendar

is there anything else beside file dtpick_care2x.js where this
function depends.

Gjergj Sheldija

unread,
Oct 25, 2008, 2:58:51 PM10/25/08
to care...@googlegroups.com
which version are you using ?

prakash poudel

unread,
Oct 25, 2008, 3:08:52 PM10/25/08
to care...@googlegroups.com

Its 2002. and we have been working on this . I need this calender to display date in my new module. So can you help me out as if i get stuck on this. And few more code which i didn't understand.

--


PRAKASH POUDEL
INSTITUTE OF ENGINEERING
PULCHOWK, KATHMANDU

Gjergj Sheldija

unread,
Oct 25, 2008, 3:11:34 PM10/25/08
to care...@googlegroups.com
the easiest thing to do is to checkout the last version from the svn
and see how i've done it. it's always better to look at the code :)

you can do it via :
svn co https://care2002.svn.sourceforge.net/svnroot/care2002/trunk/2.6

regards

prakash poudel

unread,
Oct 25, 2008, 3:21:26 PM10/25/08
to care...@googlegroups.com

Thank you for your support. Well i went through the code, as i have to add new files in the module and use that calander to display the date there. Actuall after looking all the code of the file i stuck in these code. I will be very much thankful if you explain me these few code,for what they are been used there.

if(empty($is_discharged))

//It seems that this upper code checks whether the patient is discharge or not. But i am not sure
 if(!empty($sem))

// No idea of this later code.

Can you give me some idea on these. So that i may get help while looking whole code once again.


Gjergj Sheldija

unread,
Oct 25, 2008, 3:32:30 PM10/25/08
to care...@googlegroups.com
which file ? c2x has something around 6000 files! :)
you can use http://www.dynarch.com/projects/calendar/
which is the calendar i've used in the code.

since you have started the fork on an old system,
i don't think that you will have an easy merge with
the actual system.

although my suggestion would be port your code to
the current svn version and submit your code to
the community.

regards

prakash poudel

unread,
Oct 25, 2008, 3:50:10 PM10/25/08
to care...@googlegroups.com

I think that code is in the file

https://care2002.svn.sourceforge.net/svnroot/care2002/trunk/2.6/modules/personell_admin/gui_bridge/default/gui_personell_register_show.php

in the line 62-65

<?php
if(empty($is_discharged)){
 if(!empty($sem)){
?>
Actually what does this code checks for. I got error on this code so i need to identify what this specifies for. It might give solution for my problem.

Thank you



Gjergj Sheldija

unread,
Oct 25, 2008, 3:53:31 PM10/25/08
to care...@googlegroups.com
i don't know all the code by heart :)
you should check where that var is created and what value
is assigned to it.

i'd suggest to use xdebug, it's a wonderful tool

Reply all
Reply to author
Forward
0 new messages