pattern="^(0?\[0-9\]|1\[0-9\]|2\[0-3\]):(\[0-5\]\[0-9\])$"/>
<input name="todend_%s" value="%s" placeholder="HH:MM" list="dlist_timeofday"
pattern="^(0?\[0-9\]|1\[0-9\]|2\[0-3\]):(\[0-5\]\[0-9\])$"/>
- [submit "todremove" "%i" -]
- ' "$day" "${time%-*}" "$day" "${time#*-}" "${c}"
+ [submit "todremove_%s" "%i" -]
+ ' "$day" "${time%-*}" "$day" "${time#*-}" "$day" "${c}"
done
printf '[submit "addtime" "%s" + Add Time Option]' "$day"
done)
[ "${todstart%:??}" -lt "${todend%:??}" -o "${todstart%:??}" -eq "${todend%:??}" -a "${todstart#*:}" -lt "${todend#*:}" ] \
2>&- \
&& { printf '%02i:%02i-%02i:%02i\n' "${todstart%:??}" "${todstart#*:}" "${todend%:??}" "${todend#*:}"; }\
- || { [ "${todstart%:??}" -ge 0 -a "${todstart#*:}" -ge 0 ] 2>&- && printf '%02i:%02i-\n' "${todstart%:??}" "${todstart#*:}"; }
+ || { [ "${todstart%:??}" -ge 0 -a "${todstart#*:}" -ge 0 ] 2>&- && printf '%02i:%02i-\n' $(dec ${todstart%:??} ${todstart#*:}); }
done |grep -xE '^([01][0-9]|2[0-3]):([0-5][0-9])-(([01][0-9]|2[0-3]):([0-5][0-9]))?$' |sort -u
)"
[ "$addtime" = "$date" ] && DBM "$file" append "tod_${date}" "${BR}-"
markdown() { busybox awk -f "$_EXEC/cgilite/markdown.awk"; }
fi
+dec(){
+ local n
+ for n in "$@"; do
+ while [ "${n}" != "${n#0}" ]; do n="${n#0}"; done
+ printf %i\\n "$n"
+ done
+}
+
checked(){
local check="$1"; shift 1;
for comp in "$@"; do