Thinkphp Template display problems I want to output the data for one month on the template page (the data for this month is a two-dimensional array, and the daily data is a one-dimensional array ), however, there is no data in some days. on the template page, I want to determine if there is no data output in one day. if so, I want to output the data in one day, draw a circle if you don't have one day!
For example:
Array (1) {["Cao Weihua"] => array (16) {["01"] => array (3) {[0] => string (19) "08:00:40" [1] => string (19) "16:30:52" ["s"] => int (1)} ["02"] => array (3) {[0] => string (19) "08:00:10" [1] => string (19) "16:30:52" ["s"] => int (1 )} ["03"] => array (3) {[0] => string (19) "08:02:10" [1] => string (19) "16:31:52" ["s"] => int (1)} ["04"] => array (3) {[0] => string (19) "08:01:48" [1] => string (19) "16:36:37" ["s"] => int (1)} ["07"] => array (3) {[0] => string (19) "08:01:48" [1] => string (19) "16:31:08" ["s"] => int (1 )} ["08"] => array (3) {[0] => string (19) "08:00:12" [1] => string (19) "16:30:14" ["s"] => int (1)} ["09"] => array (3) {[0] => string (19) "08:00:42" [1] => string (19) "16:30:28" ["s"] => int (1)} [10] => array (2) {[0] => string (19) "08:01:12" ["s"] => int (0)} [11] => array (5) {[0] => string (19) "08:02:03" [1] => string (19) "08:02:03" [2] => string (19) "16:30:05" [3] => string (19) "16:30:05" ["s"] => int (1)} [12] => array (4) {[0] => string (19) "08:00:13" [1] => string (19) "08:00:13" [2] => string (19) "16:32:21" ["s"] => int (1)} [13] => array (3) {[0] => string (19) "08:05:03" [1] => string (19) "16:33:06" ["s"] => int (1)} [15] => array (3) {[0] => string (19) "08:00:49" [1] => string (19) "16:30:02" ["s"] => int (1 )} [16] => array (3) {[0] => string (19) "08:03:54" [1] => string (19) "16:41:54" ["s"] => int (1)} [17] => array (3) {[0] => string (19) "08:03:34" [1] => string (19) "16:44:32" ["s"] => int (1)} [18] => array (3) {[0] => string (19) "08:00:04" [1] => string (19) "16:39:05" ["s"] => int (1 )} [19] => array (2) {[0] => string (19) "07:57:08" ["s"] => int (0 )}}}
This is a three-dimensional array, indicating that Cao Weihua has data for 16 days this month, and ["01"] indicates that there is data on the first day, I want to output the corresponding number 1 on the template page, but no output in 21st day of this month. I want to output the number 21 in a circle! Find your ideas and key code. thank you!
Reply to discussion (solution)
Try the volist loop:
Data
Draw a circle
Yes. thank you very much!