I don't know smarty, but I can certainly visualize what your form would do and it seems like it would produce a valid array. I suggest you troubleshoot!
On the receiving end, do this:
echo '<pre>';
print_r($_POST);
echo '</pre>';
the node stulog_id, D1, D2, D3 etc.. should be keys from k-sub-zero to k-sub-n where 0->n represents your keys.
Then in your code do this:
echo '<pre>';
print_r($sqlupd);
echo '</pre>';
does it look like the query should update your code? copy and test it in phpMyAdmin.
I'm not solving your problem, only teaching you how to troubleshoot. If you learn this then you'll need the forum less, 2) you'll gain skills to help others on the forum and 3) the questions you DO ask on the forum will be more specific and usually higher-level questions.
In summary, TROUBLESHOOT - learn how.
Best,
Samuel