2008年1月26日 星期六

下一版的改變計畫

1. TNC的改變
X_base:
【2008-01-11 更新說明】
訪談紀錄欄位加大(請記得進行資料庫更新)
課程名稱(自訂的分科)可以修正了
教師任教科目的上課節數可以修改了
報表列印的個人資料與班級資料在xp下下載後無法開啟ooo的問題修正了
還有其他修改
【2008-01-25 更新說明】
配合X課表(x_schedule)做更新。

X_schdule
【2008-01-25 更新說明】
1.新增課表複製功能,位於管理介面人工排課的下方,可將第一學期的課表複製到第二學期,請注意第二學期的課程需先做好設定。
2.班級課表的教師姓名可超連結到該師的課表,反之教師課表的班級名稱也可超連結到該班的課表。
3.請一併更新X學務核心(x_base)
X_SCOREM
【2008-01-18 更新說明】
修正成績單(TNC)下載全班成績單時含有小數的分數轉換等第時錯誤問題。
【2008-01-18 更新說明】
增加不計分科目可於偏好設定選擇是否要顯示於成績單(TNC),請記得一併進行資料表更新。
【2008-01-17 更新說明】
排行榜修正
成績單(TNC)含日檢表修正
【2008-01-16 更新說明】
配合X導師做日檢表的格式局部修正。
X_SHEPHERD
【2008-01-18 更新說明】
增加日檢表送出時檢查功能。
【2008-01-16 更新說明】
日檢表格式局部修正。
增加全選功能(需由管理介面進行設定)。
ps.請在『日檢分類管理』的『相關說明』註明『全選』,則該主題於輸入時就有全選鈕可用。
X_sitedestine

2. TYC預期功能
榮譽榜模組
學期複製(從班級、課程、課表、教師任職,教師任教科目,學生升級等)
X導師的自訂日檢表細部說明,套用全年級比重。
X成績管理的自訂成績單

2008年1月23日 星期三

X導師修改計畫

其中成績小數位數的問題和是否只顯示在籍學生的問題都要修改程式碼

2008年1月21日 星期一

建立印章

首先要把印章的樣式加入
function char_border_style() {
<style:properties asian="'.iconv('big5','utf-8','標楷體').'" color="#ff0000"><style:properties color="#ff0000" pos="from-top" through="background" align="center" fill="none" width="0.049cm">return '<style:properties color="#ff0000" asian="'.iconv('big5','utf-8','標楷體').'" asian="12pt"></style:style>' .'<style:style name="cborder" family="graphics"></style:style>';
}
將印章放入標籤
$temp_arr['master']='<draw:rect name="cborder" width="1.007cm" height="1.057cm" index="0" y="0cm" type="as-char"><text:p><text:span name="cchar">'.RangeStamp($tsd['tea_name'],'校之<text:line-break></text:line-break>長印').'</text:span></text:p></draw:rect>';

2008年1月17日 星期四

取得scoremcfg函數

function get_scoremcfg($cfgfile) {
//default
$scoremcfg['usingperoid']=''; //使用節數
$scoremcfg['paper1']='';
$scoremcfg['paper2']='';
$scoremcfg['paper3']='';
$scoremcfg['paper4']='';
$scoremcfg['paper5']='';
$scoremcfg['paper6']='';
$scoremcfg['paper7']='';
$scoremcfg['paper8']='';
$scoremcfg['paper9']='';
$scoremcfg['guidescore']='';
if (file_exists($cfgfile)) {
if($f = @fopen($cfgfile,"r")) {
$contents = fread($f, filesize($cfgfile));
fclose($f);
$scoremcfg=unserialize($contents);
}
}
}

2008年1月14日 星期一

x_scorem ooo_tyc_seme_paper要修改的地方

Q. 修改底下開學通知事項,可用{說明}參數使用,但目前測試僅適合個人成績單,全班成績單無法出現,所以我用自己打在樣板上.
A. ooo_tyc_seme_paper 還要修改簡化
Q. 上傳樣板有點難度,且將來修改時會覆蓋
A. 增加上傳自訂成績單的功能
設定項目放在 upload/tycx/scorem.cfg
使用 $scoremcfg[]陣列變數
用seriealize 轉文字檔寫入

A 分開導師評語和日常生活成績描述(給貼條用)

2008年1月3日 星期四

serialize初探

dbtool進階程式碼預計用serialize編碼儲存

底下把二年七班編碼,再解回
$a = serialize(array('96','1','2','7'));
list($gc_year,$gc_seme,$gc_grad,$gc_class)=unserialize($a);

2008年1月1日 星期二

修改update.sh

這是測試版
upfilename="update.txt"
verpath="/tycx/prog"
xooppath="/tycx/html"
[ -d $verpath ] mkdir $verpath
cd $verpath
if [ -f ${verpath}/oldupdate.txt ]; then
rm -f oldupdate.txt
fi
if [ -f ${verpath}/$upfilename ]; then
mv $upfilename oldupdate.txt
fi
wget http://www.nlps.tyc.edu.tw/x/$upfilename
if [ -f ${verpath}/oldupdate.txt ]; then
oldfilename=`cut -c1-18 oldupdate.txt`
else
oldfilename='update00000000.zip'
fi
if [ -f ${verpath}/$upfilename ]; then
zipfilename=`cut -c1-18 $upfilename`
else
echo "$upfilename download error"
exit
fi
if [ "$zipfilename" \> "$oldfilename" ]; then
wget http://www.nlps.tyc.edu.tw/x/$zipfilename
if [ -f ${verpath}/$zipfilename ]; then
unzip -d ${xooppath}/modules/ -o $zipfilename
else
echo 'download error'
fi
else
echo "Update allready"
fi

預定修改計畫

X成績
國小介面:日常生活評語和日檢表呈現可直接編修
國中介面:到大有國中看看
X課表
列印教師課表、專科教室課表
一次列印全部班級課表,教師課表。