1.由时间戳转为 年月日 时分秒
<{$val.sed_time|date_format:'%Y-%m-%d %H-%M-%S'}>
2.smarty中进行数学运算
求百分比
<{math equation="((x - y)/x)*100" x=<{$val.share_num}> y=<{$val.remain_num}>}>%
1.由时间戳转为 年月日 时分秒
<{$val.sed_time|date_format:'%Y-%m-%d %H-%M-%S'}>
2.smarty中进行数学运算
求百分比
<{math equation="((x - y)/x)*100" x=<{$val.share_num}> y=<{$val.remain_num}>}>%